mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-576: New entities must have primary key values right after flushing with IDENTITY strategy #706
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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 8, 2010):
Issue was closed with resolution "Fixed"