Bug #102725
closedAuto creation of MM tables from TCA doesn't generate column tablenames
100%
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
Updated by Christian Weiske 11 months ago
We also see this bug with TYPO3 11.5.33.
Updated by Garvin Hicking 8 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.
Updated by J. Peter M. Schuler 6 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!)
Updated by Christian Kuhn 4 months ago
- Related to Feature #102586: Introduce sortable Doctrine DBAL middleware registration added
Updated by Christian Kuhn 4 months ago
- Related to deleted (Feature #102586: Introduce sortable Doctrine DBAL middleware registration)
Updated by Gerrit Code Review 4 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87307
Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87307
Updated by Christian Kuhn 4 months ago
- Related to Feature #95061: Auto creation of MM tables from TCA added
Updated by Gerrit Code Review 4 months ago
Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87309
Updated by Gerrit Code Review 4 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87310
Updated by Christian Kuhn 4 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c1ee76d8b4acdc0782da8934c35cd33d322fa8dd.
Updated by Anja Leichsenring 3 months ago
- Related to Task #105746: Field Generator for TCA type group with MM table added