Project

General

Profile

Bug #78961 ยป Backend.patch

Deleted Account, 2016-12-12 17:49

View differences:

typo3/sysext/extbase/Classes/Persistence/Generic/Backend.php
if ($propertyValue->_isNew()) {
$this->insertObject($propertyValue, $object, $propertyName);
}
// Check explicitly for NULL, as getPlainValue would convert this to 'NULL'
$row[$columnMap->getColumnName()] = $propertyValue !== null
? $this->dataMapper->getPlainValue($propertyValue)
......
$queue[] = $propertyValue;
} elseif ($object->_isNew() || $object->_isDirty($propertyName)) {
$row[$columnMap->getColumnName()] = $this->dataMapper->getPlainValue($propertyValue, $columnMap);
$className = get_class($object);
$propertyMetaData = $this->reflectionService->getClassSchema($className)->getProperty($propertyName);
$cleanProperty = $object->_getCleanProperty($propertyName);
if ($propertyValue === null && $cleanProperty instanceof \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface && $propertyMetaData['cascade'] === 'remove') {
$this->removeEntity($cleanProperty);
}
}
}
if (!empty($row)) {
    (1-1/1)