[PR #286] [CLOSED] Clear set of readOnlyObjects in UnitOfWork #7970

Open
opened 2026-01-22 15:57:46 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/286
Author: @saem
Created: 2/15/2012
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • fcafeef When persisting entities in a batch and employing partial references (for performance), there can be hash collisions, manifesting as PDO errors regarding unbound parameters.

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+1 -0)

📄 Description

This fixes issues due to hash collisions, as spl_object_hash reuses hash values, when using clear interspersed within a bulk insert.


🔄 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/286 **Author:** [@saem](https://github.com/saem) **Created:** 2/15/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`fcafeef`](https://github.com/doctrine/orm/commit/fcafeefac63526b7e130f49b1dfe74bb70fffa20) When persisting entities in a batch and employing partial references (for performance), there can be hash collisions, manifesting as PDO errors regarding unbound parameters. ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+1 -0) </details> ### 📄 Description This fixes issues due to hash collisions, as spl_object_hash reuses hash values, when using clear interspersed within a bulk insert. --- <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:57:46 +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#7970