mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-137: Only last relation id updated with multiple one-to-one self-referencing relations #171
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 (Nov 12, 2009).
Jira issue originally created by user reinier.kip:
Take this simplified situation:
The entities' ids are now:
Entity 1: 1, Entity 2: 2, Entity 3: 3However, the other1's relation id is not updated:
The SQL clarifies:
Adding 'other3' proved that only the last relation id is updated, as such:
This is not the case with relations that reference to entities outside the class hierarchy (so the same problem occurs with relations inside the class hierarchy).
@doctrinebot commented on GitHub (Nov 15, 2009):
Comment created by romanb:
Thanks, should be fixed now.
@doctrinebot commented on GitHub (Nov 15, 2009):
Issue was closed with resolution "Fixed"