[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

PostgreSQL 8.4.3, Ubuntu 10.04

Attachments: GZip Archive example.tar.gz    


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

Generated at Sun Aug 30 04:16:04 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.