Review main Merged

70844[FEATURE] Auto creation of MM tables from TCA

Christian Kuhn CR +2 V +2 Hard +539 −69 updated 07/31/23, 15:49

Commit message

Specification of proper MM table layouts within TYPO3
has been troublesome ever since. There is a huge
amount of possible "MM_*" TCA column field properties
that have impact on a "true" MM table layout. Neither
core itself, nor extensions tend to get that right.

To simplify extension developers life, this patch
adds a "default TCA schema" definition for MM tables.
Extension developers are encouraged to drop their
"MM" table definitions from ext_tables.sql.
By doing so, they hand over control of those tables to
the core, so core can manage and adapt schema if needed.

The impact is shown with irre_tutorial extension: It
can drop two definitions from ext_tables.sql, as well as
ext:core's ext_tables.sql, which drops the specification
of sys_category_record_mm. ext:styleguide has cases, too.

Next to the business code in DefaultTcaSchema, the
patch adds a series of @todo comments to the involved
code, pointing out issues with current MM handling.
This feature patch acts as a pre-patch to fix these.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 12