Skip to content

Loading…

DDC-2645: merge() not dealing correctly with composite primary keys #3380

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

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

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

Comment created by lhess:

Same problem here, please fix this issue asap! :-))

@doctrinebot

Comment created by @beberlei:

Fixed and merged for 2.4.2

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.4.2 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.