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

Closed
doctrinebot opened this Issue Jul 14, 2011 · 4 comments

2 participants

@doctrinebot

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

Comment created by domnikl:

I implemented this (#104) but forgot to consider also cascade detach. What do you think about adding an additional parameter $entityName to both cascadeDetach() and doDetach()?

@doctrinebot

Comment created by @beberlei:

Merged into 2.2-master

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot

Comment created by @asm89:

By merging the new PR: #105.

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment