Review main Ready for review

98198[TASK] Set pid of domain objects without calling setPid()

Alexander Schnitzler CR +1 V +1 Normal +74 −3 updated 11/29/26, 19:43

Commit message

Extbase sets the properties of domain objects by reflection and
bypasses their setters, which are userland code. The persistence
backend still called setPid() after inserting an object and when
moving inline children together with their parent.

Both places now set the pid by reflection, like the data mapper
does when it maps a record to an object. getPid() is still the
only way the framework reads the pid.

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 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/98/98198/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/98/98198/2 && git cherry-pick FETCH_HEAD

Review

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

Merge conflicts 6

Issues 1

Files 4

Review log 46

  1. Alexander Schnitzler uploaded patch set 1 11/29/26, 19:02

  2. Alexander Schnitzler wrote 11/29/26, 19:02

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

  4. Alexander Schnitzler uploaded patch set 2 V -1 11/29/26, 19:21

  5. core-ci voted on patch set 2 V +1 11/29/26, 19:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115973

  6. Oliver Klee voted on patch set 2 CR +1 V +1 11/29/26, 19:43