Review main Merged

96921[TASK] Compare writing MM relations in Extbase with DataHandler

Alexander Schnitzler CR +2 V +2 Expert +1112 −0 updated 10/20/26, 16:37

Commit message

Writing MM relations through an Extbase repository and sending the
same relation in the backend form should leave the database in the
same state. This adds MmRelationTranslationWriteTest and
RelationWriteTest with pairs of functional tests on blog_example: a
ByCore test sends the change through DataHandler as an admin, a
ByExtbase test does the same through the repository and expects the
same rows.

The pairs cover adding, reordering and removing related posts of a
translation, saving a translation whose relation rows point to the
translated or to the default posts, adding, reordering and removing
tags of a post, new and reordered inline children, a new file
reference, and replacing a lazy relation that was never read.

Extbase differs from DataHandler in seven of them. Those ByExtbase
tests are skipped and describe the difference:
- reordering the related posts of a translation rewrites the rows of
  the default record instead of those of the translation
- removing a related post from a translation deletes the row of the
  default record and leaves the rows of the translation
- saving a translation with its translated related posts adds rows
  to the default posts next to the existing rows
- saving a translation whose rows point to the default posts throws
  a UNIQUE constraint violation
- removing a tag leaves the remaining row at its old sorting_foreign
- replacing an unread lazy relation with the same or with fewer
  posts throws a UNIQUE constraint violation

Review

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

Issues 2

Files 27

Show 7 more files

Review log 67

  1. Alexander Schnitzler uploaded patch set 1 10/20/26, 14:40

  2. core-ci voted on patch set 1 V +1 10/20/26, 14:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111851

  3. Alexander Schnitzler marked it ready for review 10/20/26, 14:50

  4. Alexander Schnitzler wrote 10/20/26, 15:22

    Topic set to extbase
  5. Oliver Klee voted on patch set 1 V +1 10/20/26, 16:10

  6. Benni Mack voted on patch set 1 CR +2 V +2 10/20/26, 16:37

  7. Benni Mack merged patch set 2 10/20/26, 16:37