[TYPO3-mvc] Problems using 1..N relationships within STI
Hauke Stange
hstange at eheundjanneck.de
Tue Jul 12 15:22:22 CEST 2011
Ok, just found the flaw myself.
I configured the 1:N relationship in the TCA via 'select' but it has to
be 'inline'. Makes more sense obviously because this gives me the
ability to declare the coresponding property / field by the
'foreign_field' setting.
---8<---8<--- snip ---8<---8<---
'bar_objects' => array(
'label' => 'Liste mit Bar-Objekten',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_gpqg_domain_model_basisklasse',
'foreign_field' => 'foo_reference',
'foreign_table_where' => 'AND
`tx_gpqg_domain_model_basisklasse`.`record_type` =
\'Tx_Gpqg_Domain_Model_UnterklasseBar\'',
'maxitems' => 999
)
),
---8<---8<--- snip ---8<---8<---
More information about the TYPO3-project-typo3v4mvc
mailing list