DDC-3197: [GH-1074] [DDC-3160] Alternate fix for DDC-2996 bug #3962

Open
opened 2026-01-22 14:32:25 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 26, 2014).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of zimmermanj42:

Url: https://github.com/doctrine/doctrine2/pull/1074

Message:

The fix implemented for DDC-2996 seems to have broken quite a bit of code outside of Doctrine (for instance, the popular DoctrineExtensions project).

I'm not too well versed in Doctrine internals, but looking at the fix, I found it odd that an entity would live in both the insertion and update tracking in the unit of work.

This implementation should fix the case described in DDC-2996, while not creating any side effects with objects that are scheduled to be inserted.

I've ran this test with the Doctrine test suite and have also tested this change with the DoctrineExtensions project; unless I'm doing something wrong, it seems to have good results.

Again, I'm not too well versed in the inner workings of Doctrine, but I did a little research, poked around some code, and came up with this.

Originally created by @doctrinebot on GitHub (Jun 26, 2014). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of zimmermanj42: Url: https://github.com/doctrine/doctrine2/pull/1074 Message: The fix implemented for [DDC-2996](http://www.doctrine-project.org/jira/browse/DDC-2996) seems to have broken quite a bit of code outside of Doctrine (for instance, the popular DoctrineExtensions project). I'm not too well versed in Doctrine internals, but looking at the fix, I found it odd that an entity would live in both the insertion and update tracking in the unit of work. This implementation should fix the case described in [DDC-2996](http://www.doctrine-project.org/jira/browse/DDC-2996), while not creating any side effects with objects that are scheduled to be inserted. I've ran this test with the Doctrine test suite and have also tested this change with the DoctrineExtensions project; unless I'm doing something wrong, it seems to have good results. Again, I'm not too well versed in the inner workings of Doctrine, but I did a little research, poked around some code, and came up with this.
admin added the BugDuplicate labels 2026-01-22 14:32:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3962