DDC-576: New entities must have primary key values right after flushing with IDENTITY strategy #706

Closed
opened 2026-01-22 12:47:34 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (May 7, 2010).

Jira issue originally created by user drevolution:

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

Originally created by @doctrinebot on GitHub (May 7, 2010). Jira issue originally created by user drevolution: After insertion of some new entity the primary key must be set. Example code is attached above.
admin added the Bug label 2026-01-22 12:47:34 +01:00
admin closed this issue 2026-01-22 12:47:34 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 7, 2010):

Comment created by romanb:

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

@doctrinebot commented on GitHub (May 7, 2010): Comment created by romanb: 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).
Author
Owner

@doctrinebot commented on GitHub (May 8, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (May 8, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#706