[FLOW3-general] defone auto_incement on non primary column

Robert Lemke robert at typo3.org
Fri Dec 16 09:07:23 CET 2011


Hi Peter Russ,

On 15.12.2011, at 23:16, Peter Russ wrote:

> 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.


This is not possible – but not due to Doctrine's limitations but due to how auto increments work: MySQL only allows auto increments for primary keys …

Cheers,
Robert



More information about the FLOW3-general mailing list