Review main Merged

96794[TASK] Cover validation of lazy to-one relations in Extbase

Alexander Schnitzler CR +2 V +2 Normal +176 −0 updated 10/18/26, 07:00

Commit message

The base validator of a domain object has to descend into a lazily
loaded to-one relation and report errors at the path of the relation,
without failing on the unresolved lazy object. Such a relation is a
plain instance of the related class that is initialized on first
access, and not a LazyLoadingProxy.

Since "Use native PHP lazy objects" (9abd0164b76) the data mapper
creates native lazy objects for #[Lazy] relations. The new functional
test covers this for the blog example fixtures: an unresolved relation
is validated against the related model, and valid and invalid values
are detected.

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 1

Files 2

Review log 67

  1. Alexander Schnitzler uploaded patch set 1 10/17/26, 15:51

  2. Alexander Schnitzler wrote 10/17/26, 15:55

    Topic set to extbase
  3. core-ci voted on patch set 1 V +1 10/17/26, 15:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111475

  4. Alexander Schnitzler commented on patch set 1 10/17/26, 16:33

    This change is ready for review.
  5. Oliver Klee voted on patch set 1 CR +1 V +1 10/17/26, 16:59

  6. Benni Mack voted on patch set 1 CR +2 V +2 10/18/26, 07:00

  7. Benni Mack merged patch set 2 10/18/26, 07:00