Review 10.4 Abandoned

75364[BUGFIX] Use ClassSchema to properly detect DomainObject properties

Benni Mack CR 0 V 0 Normal +170 −70 updated 08/08/22, 17:21

Commit message

To gather information about properties of domain objects, extbase
used method DomainObjectInterface::_getProperties() which internally
used get_object_vars() which does not return uninitialized properties.

This leads to the inability to use such uninitialized properties
in models. Hence, those properties are not reconstituted at all
when converting an object instance from a database row, eventually
leading to fatal errors.

To mitigate this issue, extbase does now use the existing information
about classes gathered via ClassSchema which gathers information via
reflection (anyway).

Review

  • Code review CR 0
  • Verified V 0

Issues 1

Files 8

Review log 2

  1. Benni Mack commented on patch set 1 08/08/22, 17:21

    Cherry Picked from branch 11.5. The following files contain Git conflicts: * typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php * typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapperTest.php * typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
  2. Benni Mack abandoned the change 08/08/22, 17:21

    no straight backport