Project

General

Profile

Actions

Bug #102725

open

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

Added by Matthias Buchegger 11 months ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2023-12-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files

Actions #1

Updated by Christian Weiske 7 months ago

We also see this bug with TYPO3 11.5.33.

Actions #2

Updated by Garvin Hicking 4 months ago

  • Category set to Database API (Doctrine DBAL)

(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.

Actions #3

Updated by J. Peter M. Schuler 2 months ago

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!)

Actions

Also available in: Atom PDF