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

Closed
opened 2026-01-22 14:22:30 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Dec 11, 2013).

Originally assigned to: @guilhermeblanco on GitHub.

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);
Originally created by @doctrinebot on GitHub (Dec 11, 2013). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user holtkamp: As described [here](https://groups.google.com/forum/?fromgroups#!topic/doctrine-user/MhVOzoNIL60), 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); ```
admin closed this issue 2026-01-22 14:22:30 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 30, 2014):

Comment created by holtkamp:

PR: https://github.com/doctrine/doctrine2/pull/995
Auto-created issue: http://www.doctrine-project.org/jira/browse/DDC-3060

@doctrinebot commented on GitHub (Mar 30, 2014): Comment created by holtkamp: PR: https://github.com/doctrine/doctrine2/pull/995 Auto-created issue: http://www.doctrine-project.org/jira/browse/[DDC-3060](http://www.doctrine-project.org/jira/browse/DDC-3060)
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2014):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-995] was closed:
https://github.com/doctrine/doctrine2/pull/995

@doctrinebot commented on GitHub (Apr 16, 2014): Comment created by @doctrinebot: A related Github Pull-Request [GH-995] was closed: https://github.com/doctrine/doctrine2/pull/995
Author
Owner

@doctrinebot commented on GitHub (Apr 21, 2014):

Comment created by @guilhermeblanco:

As of 1cd0b26a40 this issue is now fixed.

@doctrinebot commented on GitHub (Apr 21, 2014): Comment created by @guilhermeblanco: As of https://github.com/doctrine/doctrine2/commit/1cd0b26a40dc22b0d11b1860eb058ab9cdc29f36 this issue is now fixed.
Author
Owner

@doctrinebot commented on GitHub (Apr 21, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 21, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3558