Review main Merged

96929[TASK] Compare reading relations of translations with the Record API

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

Commit message

Reading the relations of a translated record through an Extbase
repository should return what the Record API returns for the same
record. This adds RelationsOfTranslationsReadTest with pairs of
functional tests on blog_example: a ByCore test selects the record
as CONTENT does, turns it into a resolved record with RecordFactory
and reads the relation field like RecordCollector does, a ByExtbase
test follows the property of the entity and expects the same titles.

The pairs cover the posts of a translated blog and of a blog with a
translated child of a hidden default record, a tree of folders, the
blog and the related posts of a post with overlays on, mixed and off,
with a fallback chain and for a post in all languages, and equals(),
in() and contains() on a relation to a translated record.

Extbase differs from the Record API in seven of them. Those ByExtbase
tests are skipped and describe the difference:
- the relations of a record read with overlays off are loaded as with
  overlays mixed
- the related posts of a post in a fallback chain return the
  translation of the first fallback language, with overlays on and
  mixed
- equals() and in() on a relation or on the uid of an MM relation
  bind the uid of the translation, so no record is found

blog_example gets a small folder table with translatable inline
children of its own table for the tree of folders.

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 10

Review log 67

  1. Alexander Schnitzler uploaded patch set 1 10/20/26, 15:07

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

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

    Topic set to extbase
  4. Alexander Schnitzler marked it ready for review 10/20/26, 15:42

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

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

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