Project

General

Profile

Actions

Bug #102725

closed

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

Added by Matthias Buchegger about 1 year ago. Updated 4 months ago.

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

100%

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #95061: Auto creation of MM tables from TCAClosed2021-08-31

Actions
Related to TYPO3 Core - Task #105746: Field Generator for TCA type group with MM tableResolvedAnja Leichsenring2024-12-03

Actions
Actions #1

Updated by Christian Weiske 11 months ago

We also see this bug with TYPO3 11.5.33.

Actions #2

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.

Actions #3

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

Actions #4

Updated by Christian Kuhn 4 months ago

  • Related to Feature #102586: Introduce sortable Doctrine DBAL middleware registration added
Actions #5

Updated by Christian Kuhn 4 months ago

  • Related to deleted (Feature #102586: Introduce sortable Doctrine DBAL middleware registration)
Actions #6

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

Actions #7

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

Actions #8

Updated by Christian Kuhn 4 months ago

  • Related to Feature #95061: Auto creation of MM tables from TCA added
Actions #9

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

Actions #10

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

Actions #11

Updated by Christian Kuhn 4 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Anja Leichsenring 3 months ago

  • Related to Task #105746: Field Generator for TCA type group with MM table added
Actions

Also available in: Atom PDF