[DDC-576] New entities must have primary key values right after flushing with IDENTITY strategy Created: 07/May/10 Updated: 08/May/10 Resolved: 08/May/10
|Project:||Doctrine 2 - ORM|
|Reporter:||Václav Novotný||Assignee:||Roman S. Borschel|
PostgreSQL 8.4.3, Ubuntu 10.04
After insertion of some new entity the primary key must be set. Example code is attached above.
|Comment by Roman S. Borschel [ 07/May/10 ]|
I think I reproduced this already. Seems to be related to PostgreSQL + IDENTITY only. The SequenceIdentityGenerator must be used but apparently it is not used.
Thanks for the report. Will keep you updated.
ps. The standalone reproduce scripts are good. Thanks for that! If you are interested it would be even better if the test code would be provided as a unit test or with some additional comments and/or assertions about what the desired behavior is or where the supposedly wrong behavior is (even if it is very obvious, like in this issue).