[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

Status: Closed
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.0-BETA1
Fix Version/s: 2.0-BETA2
Security Level: All

Type: Bug Priority: Critical
Reporter: Václav Novotný Assignee: Roman S. Borschel
Resolution: Fixed Votes: 0
Labels: None
Environment:

PostgreSQL 8.4.3, Ubuntu 10.04


Attachments: GZip Archive example.tar.gz    

 Description   

After insertion of some new entity the primary key must be set. Example code is attached above.



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

Generated at Sat Oct 25 14:33:45 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.