Bug #78961 ยป Backend.patch
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)) {
|