mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1278: EntityManager::clear($entity) support #1609
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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 (Oct 16, 2011):
Comment created by @beberlei:
Merged into 2.2-master
@doctrinebot commented on GitHub (Oct 16, 2011):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Oct 16, 2011):
Comment created by @asm89:
By merging the new PR: https://github.com/doctrine/doctrine2/pull/105.