DDC-1278: EntityManager::clear($entity) support #1609

Closed
opened 2026-01-22 13:19:46 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 14, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @guilhermeblanco:

It was originally planned that EntityManager::clear() would also support an optional argument - $entity -, which would remove only the reference to an existent entity (maybe also consider a new cascade to allow graph clearing) from UoW.
Currently, it's win or wall. You can't clear a specific portion of Entities.

Originally created by @doctrinebot on GitHub (Jul 14, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @guilhermeblanco: It was originally planned that EntityManager::clear() would also support an optional argument - $entity -, which would remove only the reference to an existent entity (maybe also consider a new cascade to allow graph clearing) from UoW. Currently, it's win or wall. You can't clear a specific portion of Entities.
admin added the New Feature label 2026-01-22 13:19:46 +01:00
admin closed this issue 2026-01-22 13:19:48 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 13, 2011):

Comment created by domnikl:

I implemented this (https://github.com/doctrine/doctrine2/pull/104) but forgot to consider also cascade detach. What do you think about adding an additional parameter $entityName to both cascadeDetach() and doDetach()?

@doctrinebot commented on GitHub (Aug 13, 2011): Comment created by domnikl: I implemented this (https://github.com/doctrine/doctrine2/pull/104) but forgot to consider also cascade detach. What do you think about adding an additional parameter $entityName to both cascadeDetach() and doDetach()?
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2011):

Comment created by @beberlei:

Merged into 2.2-master

@doctrinebot commented on GitHub (Oct 16, 2011): Comment created by @beberlei: Merged into 2.2-master
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 16, 2011): Issue was closed with resolution "Fixed"
Author
Owner

@doctrinebot commented on GitHub (Oct 16, 2011):

Comment created by @asm89:

By merging the new PR: https://github.com/doctrine/doctrine2/pull/105.

@doctrinebot commented on GitHub (Oct 16, 2011): Comment created by @asm89: By merging the new PR: https://github.com/doctrine/doctrine2/pull/105.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1609