Bug #43967 ยป orphanRemoval-fix-driver-check.patch

Tarcisio Fedrizzi, 2013-01-03 11:00

View differences:

Classes/TYPO3/Flow/Persistence/Doctrine/Mapping/Driver/FlowAnnotationDriver.php
497 497
				} elseif ($this->isAggregateRoot($mapping['targetEntity'], $className) === FALSE) {
498 498
					$mapping['cascade'] = array('all');
499 499
				}
500
				if ($oneToOneAnnotation->orphanRemoval) {
500
				if (isset($oneToOneAnnotation->orphanRemoval)) {
501 501
					$mapping['orphanRemoval'] = $oneToOneAnnotation->orphanRemoval;
502 502
				} elseif ($this->isAggregateRoot($mapping['targetEntity'], $className) === FALSE) {
503 503
					$mapping['orphanRemoval'] = TRUE;
......
516 516
				} elseif ($this->isAggregateRoot($mapping['targetEntity'], $className) === FALSE) {
517 517
					$mapping['cascade'] = array('all');
518 518
				}
519
				if ($oneToManyAnnotation->orphanRemoval) {
519
				if (isset($oneToManyAnnotation->orphanRemoval)) {
520 520
					$mapping['orphanRemoval'] = $oneToManyAnnotation->orphanRemoval;
521 521
				} elseif ($this->isAggregateRoot($mapping['targetEntity'], $className) === FALSE) {
522 522
					$mapping['orphanRemoval'] = TRUE;
    (1-1/1)