[PR #132] [CLOSED] Fix an insertion of a collection to collectionUpdates/collectionDeletions properties #7745

Closed
opened 2026-01-22 15:56:39 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/132
Author: @realmfoo
Created: 9/21/2011
Status: Closed

Base: masterHead: fix


📝 Commits (1)

  • a369c98 Fix an insertion of a collection to collectionUpdates/collectionDeletions properties

📊 Changes

1 file changed (+5 additions, -4 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+5 -4)

📄 Description

Method computeAssociationChanges doesn't use spl_object_hash to add collection only once to array. It can lead to an exception if computeChangeSets would be called twice.

Exactly changes were already made to entityChangeSets, entityUpdates and etc.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/132 **Author:** [@realmfoo](https://github.com/realmfoo) **Created:** 9/21/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix` --- ### 📝 Commits (1) - [`a369c98`](https://github.com/doctrine/orm/commit/a369c981ec3dbc63563ee6cfc9d48c5555b8bd52) Fix an insertion of a collection to collectionUpdates/collectionDeletions properties ### 📊 Changes **1 file changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+5 -4) </details> ### 📄 Description Method computeAssociationChanges doesn't use spl_object_hash to add collection only once to array. It can lead to an exception if computeChangeSets would be called twice. Exactly changes were already made to entityChangeSets, entityUpdates and etc. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:56:39 +01:00
admin closed this issue 2026-01-22 15:56:40 +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#7745