Review main Merged

98039[TASK] Read entity properties via reflection in UriBuilder

Alexander Schnitzler CR +2 V +2 Normal +206 −6 updated 11/26/26, 13:57

Commit message

UriBuilder and the f:render.text ViewHelper were the last core
callers of DomainObjectInterface::_getProperties() besides the
history tracker. Both now read the property values through
ReflectionService, like the Extbase persistence layer does since
#95823.

The new ReflectionService::getRawEntityPropertyValues() skips
internal "_" properties and uninitialized typed properties, and
initializes a lazy proxy once, as before. Unlike
_getProperties(), it returns the raw values of hooked properties,
leaves out virtual and dynamic properties and lists the properties
of the concrete class first. Link arguments of value objects and
fields rendered by f:render.text now carry the stored state, as
the persistence layer does. The changelog of #95823 is extended
accordingly.
Show more Show less

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Oliver Klee +1
  • Verified V +2 Done
    • Benni Mack +2
    • Oliver Klee +1
    • core-ci +1 CI

Issues 2

Files 9

Review log 1012

  1. Alexander Schnitzler uploaded patch set 1 11/25/26, 19:31

  2. Alexander Schnitzler wrote 11/25/26, 19:32

    Topic set to extbase
  3. core-ci voted on patch set 1 V +1 11/25/26, 19:38 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115499

  4. Alexander Schnitzler commented on patch set 1 11/26/26, 07:00

  5. Oliver Klee voted on patch set 1 V +1 11/26/26, 10:51

  6. Oliver Klee commented on patch set 1 11/26/26, 10:54

    Looks good. I've added a comment on the naming.

    ReflectionService.php:156

    Can we rename this variable to differentiate it from the method parameter, e.g. `$initializedLazyObject`?
  7. Alexander Schnitzler uploaded patch set 2 V +1 11/26/26, 13:03

  8. Oliver Klee commented on patch set 2 CR +1 V +1 11/26/26, 13:04

    ReflectionService.php:156 Reply

    Done
  9. Alexander Schnitzler commented on patch set 2 11/26/26, 13:04

    ReflectionService.php:156 Reply

    done. Mostly, said method does not return a lazy object, therefore the variable name without lazy. The method just possibly returns a lazy object.
  10. core-ci voted on patch set 2 V +1 11/26/26, 13:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115570

  11. Benni Mack voted on patch set 2 CR +2 V +2 11/26/26, 13:57

  12. Benni Mack merged patch set 3 11/26/26, 13:57