Affects Version/s: None
Fix Version/s: None
Security Level: All
Environment:Symfony 2, linux
I want to have a column on a table that by default it takes the value from a sequence.
I've tried to do something like this:
- @ORM\Column(type="integer", unique="true")
- @ORM\SequenceGenerator(sequenceName="seq_categorias", initialValue=1, allocationSize=100)
But this doesn't work, it creates de sequence but not the link between the table column and the sequence. Is there any possibility to do something like this? Or any autoincrement default value instead?