Review main Merged

96934[TASK] Compare Extbase record types with the core

Alexander Schnitzler CR +2 V +2 Hard +766 −0 updated 10/20/26, 16:32

Commit message

Reading and creating records of a table with a type field should
return the same rows through Extbase and through the core. This adds
RecordTypeTest with pairs of functional tests on blog_example: a
ByCore test reads with the select of the CONTENT cObject and writes
with DataHandler as an admin, a ByExtbase test does the same through
the repository and expects the same rows.

The pairs cover reading all vehicles through the base class, reading
the vehicles of a subclass type, creating a record without a type,
and conditions on a field that only one subtype has, plain and
negated.

Extbase differs from the core in two of them. Those ByExtbase tests
are skipped and describe the difference:
- with a subclass configured, the repository of the base class finds
  only rows with the record type of the subclass, not rows with an
  empty type or the type 0
- an object of the base class is stored with the type 0 and is then
  not found by the repository of the base class

blog_example gets two small tables with a type field, vehicle (types
0 and car) and machine (types machine, robot and drone, with the
column battery for robots), with models, repositories and mappings
for them.

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 16

Review log 78

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

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

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

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

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

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

  7. Benni Mack voted on patch set 1 V +2 10/20/26, 16:32

  8. Benni Mack merged patch set 2 10/20/26, 16:32