mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2645: merge() not dealing correctly with composite primary keys #3319
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 (Sep 2, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user papoola:
$entity=$em->merge($entity);
fails for entity with composite keys:
http://pastebin.com/iz6UACf9
Calling flattenIdentifier() from:
returns only array of foreign keys (integer primary key ignored)
Causing this exception to be thrown:
@doctrinebot commented on GitHub (Sep 20, 2013):
Comment created by papoola:
I haven't seen any comments or progress on this issue.
So I came up with a fix for flattenIdentifier my self:
http://pastebin.com/hvVRaU8z
Can this be pushed to repos once its validated?
@doctrinebot commented on GitHub (Dec 2, 2013):
Comment created by lhess:
Same problem here, please fix this issue asap! :-))
@doctrinebot commented on GitHub (Dec 15, 2013):
Comment created by @beberlei:
Fixed and merged for 2.4.2
@doctrinebot commented on GitHub (Dec 15, 2013):
Issue was closed with resolution "Fixed"