Bug #55954

Task #55953: Repair and streamline ValueObject support

Associations to ValueObjects should not be cascade all'd

Added by Adrian Föder over 7 years ago. Updated over 6 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

As it's the case for associations to entities being an aggregate root, Associations to ValueObjects must not be delete-cascaded carelessly because they are likely to and may be associated to other entities.
This means, as far as I understand it, occurrences like

Packages\Framework\TYPO3.Flow\Classes\TYPO3\Flow\Persistence\Doctrine\Mapping\Driver\FlowAnnotationDriver.php:507
elseif ($this->isAggregateRoot($mapping['targetEntity'], $className) === FALSE) {
    $mapping['cascade'] = array('all');
}

etc.

must also check for the target entity being a ValueObject.

#1

Updated by Bastian Waidelich over 6 years ago

Just a little reminder (for all major candidates for Flow 3.0): Feature Freeze is in 10 days! Let me know if you need any help with this.

Also available in: Atom PDF