Cascade remove of cleared ArrayCollection
|Status:||Needs Feedback||Start date:||2011-07-09|
|Priority:||Should have||Due date:|
|Assignee:||Karsten Dambekalns||% Done:||
|Has patch:||No||FLOW3 version affected:||FLOW3 1.0.0|
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 to TYPO3.Flow - Bug #36804: Orphaned entities within aggregates are not removed||New||2012-05-03|
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
but i only tried the clear of array collection.
remove wasnt testet yet.