Bug #28016
Cascade remove of cleared ArrayCollection
| Status: | Needs Feedback | Start date: | 2011-07-09 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Karsten Dambekalns | % Done: | 0% |
|
| Category: | Persistence | |||
| Target version: | - | |||
| PHP Version: | Complexity: | |||
| Has patch: | No | FLOW3 version affected: | FLOW3 1.0.0 | |
| Votes: | 0 |
Description
If an aggregate root calls the clear() method of an ArrayCollection property with cascade="all", the child items are not removed from the database.
If however, you iterate through the collection calling remove($item) on the ArrayCollection, the items are removed from the DB.
Related issues
| related to TYPO3.Flow - Bug #36804: Orphaned entities within aggregates are not removed | New | 2012-05-03 |
History
Updated by Karsten Dambekalns over 1 year ago
- FLOW3 version affected set to FLOW3 1.0.0
Updated by Christian Mueller about 1 year ago
- Status changed from New to Needs Feedback
- Has patch set to No
Is this still the case? From what I see the behavior of remove and clear should be the same.
Updated by Carsten Bleicker about 1 year ago
Same here.
but i only tried the clear of array collection.
remove wasnt testet yet.
Updated by Karsten Dambekalns 3 months ago
- Assignee set to Karsten Dambekalns