DDC-1509: Issue when merging entity with several associations to inherited classes #1889

Closed
opened 2026-01-22 13:29:52 +01:00 by admin · 6 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 23, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user gedrox:

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

08716d9f72 (commitcomment-741698)

Test case will be attached shortly,

Originally created by @doctrinebot on GitHub (Nov 23, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user gedrox: 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,
admin added the Bug label 2026-01-22 13:29:52 +01:00
admin closed this issue 2026-01-22 13:29:53 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 23, 2011):

Comment created by @beberlei:

Raised to blocker.

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

@doctrinebot commented on GitHub (Nov 23, 2011): Comment created by @beberlei: Raised to blocker. I will fix that tonight and release a new ORM 2.1.\* branch.
Author
Owner

@doctrinebot commented on GitHub (Nov 23, 2011):

Comment created by @beberlei:

Fixed

@doctrinebot commented on GitHub (Nov 23, 2011): Comment created by @beberlei: Fixed
Author
Owner

@doctrinebot commented on GitHub (Nov 23, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 23, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Dec 15, 2011):

Comment created by wmoussel:

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

@doctrinebot commented on GitHub (Dec 15, 2011): Comment created by wmoussel: 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
Author
Owner

@doctrinebot commented on GitHub (Dec 15, 2011):

Comment created by gedrox:

It's 80fae20f74 I guess.

@doctrinebot commented on GitHub (Dec 15, 2011): Comment created by gedrox: It's https://github.com/doctrine/doctrine2/commit/80fae20f749f8db95156e333c430780a0717002f I guess.
Author
Owner

@doctrinebot commented on GitHub (Dec 13, 2015):

Imported 1 attachments from Jira into https://gist.github.com/7276b066b8bdf7deab7b

@doctrinebot commented on GitHub (Dec 13, 2015): Imported 1 attachments from Jira into https://gist.github.com/7276b066b8bdf7deab7b - [11115_DDC1509Test.php](https://gist.github.com/7276b066b8bdf7deab7b#file-11115_DDC1509Test-php)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1889