Issue Bug Closed

#102725Auto creation of MM tables from TCA doesn't generate column tablenames

Matthias Buchegger 12/28/23, 21:24 updated 12/02/25, 14:37

Description

I tried to set a group field in TCA with more tables in “allowed” as a MM relation, but it did not generate the “tablenames”-column in the MM table, what ended in an error.

I had to ad ‘MM_oppositeUsage’ => [‘uid_local’ => ‘uid’] to get that solved, but I don’t think that should be necessary.

Reviews 5

Files 1

History 913

  1. Christian Weiske commented <span data-processor="relativetime" data-value="2024-04-22T09:08:08+00:00" > 04/22/24, 09:08 </span>

    We also see this bug with TYPO3 11.5.33.

  2. Garvin Hicking commented and changed category <span data-processor="relativetime" data-value="2024-07-31T10:01:13+00:00" > 07/31/24, 10:01 </span>

    (Not sure if “Database API” is the best fit for this, but we have no distinct “TCA” category in the issue tracker)

    The docs do not indicate that MM_oppositeUsage is a mandatory field, so I think this needs inspection.

  3. J. Peter M. Schuler commented <span data-processor="relativetime" data-value="2024-09-11T08:44:01+00:00" > 09/11/24, 08:44 </span>

    Can confirm that this happens on latest 11LTS (11.5.39) and latest 12LTS (12.4.20), too.
    Can confirm that adding the docs-optional MM_oppositeUsage with the default value of ['uid_local' => 'uid'] resolves the problem in 11LTS and 12LTS.

    (big thx for mentioning this hotfix!)

  4. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-12-02T18:40:12+00:00" > 12/02/24, 18:40 </span>

    Applied in changeset commit:c1ee76d8b4acdc0782da8934c35cd33d322fa8dd.