[FLOW3-general] defone auto_incement on non primary column
"Christian Müller (Kitsunet)"
christian.mueller at typo3.org
Fri Dec 16 09:00:36 CET 2011
I think that would be something you have to implement yourself. MySQL
for example cannot even have auto-increment on non primary key tables.
Give it a unique constraint and find the next highest identifier yourself.
cheers,
Christian
On 15/12/11 23:16, Peter Russ wrote:
> Hallo,
>
> I have the following challenge to define an attribute which
> auto_increments but shouldn't be primary key. So far I haven't found a
> way to achive this in Doctrine.
>
> All I can figure out is that this would work with @Id and @GeneratedValue
> But by doing this I would loose the uuid :(
>
> Any idea how to keep uuid and define an attribute auto_increment with
> Doctrine.
>
> Thanks in advance.
>
> Peter
>
More information about the FLOW3-general
mailing list