[PR #105] [MERGED] DDC-1278 - EntityManager::clear($entity) support #7712

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/105
Author: @domnikl
Created: 8/13/2011
Status: Merged
Merged: 10/16/2011
Merged by: @beberlei

Base: masterHead: DDC-1278


📝 Commits (4)

  • 05fb0b9 DDC-1278 - EntityManager::clear($entity) support
  • 745535d fixed typo
  • 25f5ff0 DDC-1278 - EntityManager::clear($entity) support
  • 6e47d7b DDC-1278 - EntityManager::clear($entity) support

📊 Changes

4 files changed (+91 additions, -30 deletions)

View changed files

📝 lib/Doctrine/ORM/EntityManager.php (+2 -7)
📝 lib/Doctrine/ORM/UnitOfWork.php (+37 -21)
📝 tests/Doctrine/Tests/Models/CMS/CmsUser.php (+2 -2)
📝 tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php (+50 -0)

📄 Description

added cascade detach operation only for entites with the same name when $entityName on clear() was specified. I am still unsure where to put my tests for that.


🔄 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/105 **Author:** [@domnikl](https://github.com/domnikl) **Created:** 8/13/2011 **Status:** ✅ Merged **Merged:** 10/16/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `DDC-1278` --- ### 📝 Commits (4) - [`05fb0b9`](https://github.com/doctrine/orm/commit/05fb0b913a3a02a4d21fa406c515185c22bb555c) DDC-1278 - EntityManager::clear($entity) support - [`745535d`](https://github.com/doctrine/orm/commit/745535d269c81635ad9ef1c922b7371b44175541) fixed typo - [`25f5ff0`](https://github.com/doctrine/orm/commit/25f5ff0ca1e0da0753dbcc883a67477027f20b51) DDC-1278 - EntityManager::clear($entity) support - [`6e47d7b`](https://github.com/doctrine/orm/commit/6e47d7b16d91c2859bf23bdf98c2c6c5854159a6) DDC-1278 - EntityManager::clear($entity) support ### 📊 Changes **4 files changed** (+91 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/EntityManager.php` (+2 -7) 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+37 -21) 📝 `tests/Doctrine/Tests/Models/CMS/CmsUser.php` (+2 -2) 📝 `tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php` (+50 -0) </details> ### 📄 Description added cascade detach operation only for entites with the same name when $entityName on clear() was specified. I am still unsure where to put my tests for that. --- <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:30 +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#7712