Skip to content
Snippets Groups Projects
Commit e92d3212 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Benni Mack
Browse files

[BUGFIX] Use ClassSchema to properly detect DomainObject properties

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).

Releases: main, 11.5
Resolves: #95819
Change-Id: I00e2eb4967631ca28a5889e934fd409fd3fdef96
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72005


Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarStefan Froemken <froemken@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarStefan Froemken <froemken@gmail.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent ccc9b433
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment