[TYPO3-mvc] Combined mm table in extbase
Aimo Kuenkel
mail at aimo.cc
Wed Dec 18 12:58:23 CET 2013
Hi there,
i have 3 tables (foo, bar, baz) and every respective model has a n:m property of "files".
now i have uid_foreign, uid_local and type field in the mm table (type defines foo, bar or baz - so that I don't need 3 mm tables).
My TCA config over MM_match_fields works fine so far:
'files' => array(
[...],
'config' => array(
'type' => 'select',
[...],
'foreign_table' => 'tx_foo_domain_model_file',
'MM' => 'tx_foo_file_mm',
'MM_match_fields' => array(
'type' => 'Vendor\\Foo\\Domain\\Model\\Foo::files'
),
[...],
),
),
But: sometimes when a relation between foo<->files should be written it overrides an existing bar<->files relation (which it shouldn't, because the type is another).
Now my question is: Do i have to configure that additionally or can t3 just not handle this situation?
If it doesn't work, I will have to split that into multiple mm tables, but I really like the current setting.
Thanks in advance,
Aimo
More information about the TYPO3-project-typo3v4mvc
mailing list