[PR #84] [CLOSED] Change UnitOfWork to no store at getIdentityMap id $idHash is empty. #7687

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/84
Author: @chucre
Created: 7/16/2011
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 2ab0b7f * Change createEntity method that not store at unitOfWork->getIdentityMap $ifHash is not empty.

📊 Changes

2 files changed (+25 additions, -2 deletions)

View changed files

📝 lib/Doctrine/ORM/UnitOfWork.php (+3 -1)
📝 tests/Doctrine/Tests/ORM/UnitOfWorkTest.php (+22 -1)

📄 Description

  • Change createEntity method that not store at unitOfWork->getIdentityMap $ifHash is not empty.
  • Test cenario that a entity is create with identifier set to null. Ex: Native Query for import entities from other schema

🔄 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/84 **Author:** [@chucre](https://github.com/chucre) **Created:** 7/16/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`2ab0b7f`](https://github.com/doctrine/orm/commit/2ab0b7f0de4a260e174b5583a1f3e4e44b1155b8) * Change createEntity method that not store at unitOfWork->getIdentityMap $ifHash is not empty. ### 📊 Changes **2 files changed** (+25 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+3 -1) 📝 `tests/Doctrine/Tests/ORM/UnitOfWorkTest.php` (+22 -1) </details> ### 📄 Description - Change createEntity method that not store at unitOfWork->getIdentityMap $ifHash is not empty. - Test cenario that a entity is create with identifier set to null. Ex: Native Query for import entities from other schema --- <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:22 +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#7687