PHP code example of dualmedia / dynamic-orm-value-bundle
1. Go to this page and download the library: Download dualmedia/dynamic-orm-value-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 / dynamic-orm-value-bundle example snippets
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
// other bundles ...
DualMedia\DynamicORMValueBundle\DynamicORMValueBundle::class => ['all' => true],
];
#[ORM\Entity]
class MyOrder {
#[ORM\Id]
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private int|null $id;
// your other fields
#[ORM\Column]
#[DynamicValue(options: ['length' => 10])] // 8 is default
private string|null $publicId = null;
}