PHP code example of dualmedia / disable-orm-bundle
1. Go to this page and download the library: Download dualmedia/disable-orm-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dualmedia / disable-orm-bundle example snippets
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
// other bundles ...
DualMedia\DisableORMBundle\DisableORMBundle::class => ['all' => true],
];
#[ORM\Entity]
class FooEntity {
#[ORM\Column]
public int|null $normalField = null;
#[DisableORM]
#[ORM\Column(options: ['default' => false])]
public int|null $someField = null;
// ... getters and setters, etc.
}