Review main Ready for review Breaking

98192[!!!][FEATURE] Add EntityInterface and ValueObjectInterface

Alexander Schnitzler CR -1 V +1 Hard +792 −58 updated 11/29/26, 17:29

Commit message

Extbase recognized entities and value objects by the abstract
classes AbstractDomainObject, AbstractEntity and AbstractValueObject.
The new interfaces EntityInterface and ValueObjectInterface become
the contract instead. Both declare getUid() and getPid() and extend
DomainObjectInterface for the transition.

AbstractEntity and AbstractValueObject implement the matching
interface and stay supported as helper classes; AbstractValueObject
is no longer marked internal. The framework checks the interfaces
in the persistence layer, the property mapper, the URI builder, the
debugger, the history tracking and the Fluid form ViewHelpers. The
PersistentObjectConverter is registered for both interfaces. A class
implementing both interfaces is rejected when its class schema is
built.

BackendInterface::getUidOfAlreadyPersistedValueObject() now takes a
ValueObjectInterface. The lookup of parent class property
configuration in Classes.php no longer stops at the abstract
classes, so configuration given for them is now inherited.
Show more Show less

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/92/98192/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/92/98192/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR -1 Needs a vote
    • Oliver Klee -1
    • Alexander Schnitzler -1
  • Verified V +1 Needs a vote
    • Oliver Klee +1
    • core-ci +1 CI

Merge conflicts 17

Show 12 more changes Show less

Issues 1

Files 28

Show 8 more files Show less

Review log 56

  1. Alexander Schnitzler uploaded patch set 1 11/29/26, 12:45

  2. Alexander Schnitzler wrote 11/29/26, 12:45

    Topic set to extbase
  3. core-ci voted on patch set 1 V +1 11/29/26, 12:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115957

  4. Alexander Schnitzler commented on patch set 1 CR -1 11/29/26, 12:53

  5. Oliver Klee voted on patch set 1 V +1 11/29/26, 13:05

  6. Oliver Klee commented on patch set 1 CR -1 11/29/26, 17:29

    Please let's get https://review.typo3.org/c/Packages/TYPO3.CMS/+/93693 in first. I'll then do an in-depth review.