#105439MM_match_fields not respected when auto-generating MM tables on relations without MM_opposite_field
Description
I am not sure whether this is actually a bug, a missing feature or a documentation inconsistency (https://docs.typo3.org/m/typo3/reference-tca/13.4/en-us/ColumnsConfig/CommonProperties/Mm.html does not mention this at all, neither as a feature or a limitation).
Since v11 MM tables are autogenerated. The fields in MM_match_fields are not autogenerated, but have to be declared manually in ext_tables.sql. I expected them to be auto-generated, but they are not.
If this is intended behaviour the docs should have a note about this limitation.
EDIT: I noticed that it works when having MM_opposite_field alongside. But MM_match_fields do not neccessarily require an opposite field (it is totally valid architecture to have two, or more, local fields poitning to the same foreing table, using the same MM table without bidirectional usage).
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[FEATURE] MM_match_fields not respected when auto-generating MM tables on relations without MM_opposite_field Resolves: #105439 Releases: main