Project

General

Profile

Bug #99463 » typo3-extbase-abstractdomainobject-static-access.patch

Oliver Eglseder, 2023-01-05 10:44

View differences:

Classes/DomainObject/AbstractDomainObject.php → Classes/DomainObject/AbstractDomainObject.php (date 1672914900628)
namespace TYPO3\CMS\Extbase\DomainObject;
use ReflectionProperty;
use TYPO3\CMS\Extbase\Persistence\Generic\Exception\TooDirtyException;
use TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy;
use TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface;
......
}
}
} else {
if ($this->isPropertyDirty($this->_getCleanProperty($propertyName), $this->{$propertyName}) === true) {
$reflectionProperty = new ReflectionProperty(static::class, $propertyName);
if ($reflectionProperty->isStatic()) {
$value = static::$$propertyName;
} else {
$value = $this->{$propertyName};
}
if ($this->isPropertyDirty($this->_getCleanProperty($propertyName), $value) === true) {
return true;
}
}
    (1-1/1)