[FLOW3-general] defone auto_incement on non primary column

Peter Russ peter.russ at 4many.net
Fri Dec 16 10:23:20 CET 2011


--- Original Nachricht ---
Absender:   "Christian Müller (Kitsunet)"
Datum:       16.12.2011 09:00:
> 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
>>
>

Would I have asked if MySql couldn't do it?


Peter

-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ



More information about the FLOW3-general mailing list