[DDC-1509] Issue when merging entity with several associations to inherited classes Created: 23/Nov/11  Updated: 15/Dec/11  Resolved: 23/Nov/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.1.3, Git Master
Fix Version/s: 2.1.4
Security Level: All

Type: Bug Priority: Blocker
Reporter: Aigars Gedroics Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None

Attachments: File DDC1509Test.php    

 Description   

When merging entity with several associations to inherited classes update data gathering is broken after first inheritance processing because $entity variable is overwritten with another object.

The problem is in the line

https://github.com/doctrine/doctrine2/commit/08716d9f72996bab8c71a8cc8bda72d3925e8fb1#commitcomment-741698

Test case will be attached shortly,



 Comments   
Comment by Benjamin Eberlei [ 23/Nov/11 ]

Raised to blocker.

I will fix that tonight and release a new ORM 2.1.* branch.

Comment by Benjamin Eberlei [ 23/Nov/11 ]

Fixed

Comment by Wandrille M [ 15/Dec/11 ]

Hey I have something similar with one-to-one, can you tell me which git commit this relates to so I can investigate?

And i think it worked fine on 2.1.3 and not anymore

Comment by Aigars Gedroics [ 15/Dec/11 ]

It's https://github.com/doctrine/doctrine2/commit/80fae20f749f8db95156e333c430780a0717002f I guess.





Generated at Mon Jul 28 12:36:43 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.