DDC-2850: Allow cascaded clearing of Entities associated to the indicated Entity #3605

Closed
doctrinebot opened this Issue Dec 11, 2013 · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user holtkamp:

As described here, it would be nice to have associated Entities be cleared in case required and configured in such way. It seems the functionality is available already, but always disabled (noCascade => TRUE).
A secondary optional boolean parameter to the function would do:

https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L2342

public function clean($entityName = null, $noCascade = true)

https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/UnitOfWork.php#L2369

$this->doDetach($entity, $visited, $noCascade);
@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-995] was closed:
#995

@doctrinebot

Comment created by @guilhermeblanco:

As of 1cd0b26 this issue is now fixed.

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.5 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