[TYPO3-mvc] IRRE and intermediate tables
Andreas Kießling
andreas.kiessling at web.de
Thu Apr 1 14:02:27 CEST 2010
Hi Jochen,
Main table:
'owners' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:mymovies/Resources/Private/Language/locallang_db.xml:tx_mymovies_domain_model_movies.owners',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_mymovies_domain_model_ownership',
'foreign_field' => 'movies',
'foreign_unique' => 'owner',
'foreign_selector' => 'owner',
'size' => 10,
'maxitems' => 9999,
)
),
Ownership table:
'owner' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:mymovies/Resources/Private/Language/locallang_db.xml:tx_mymovies_domain_model_ownership.owner',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_mymovies_domain_model_owners',
'minitems' => 0,
'maxitems' => 1,
)
),
'format' => array(
'exclude' => 0,
'label' =>
'LLL:EXT:mymovies/Resources/Private/Language/locallang_db.xml:tx_mymovies_domain_model_ownership.format',
'config' => array(
'type' => 'select',
'minitems' => 0,
'maxitems' => 9999,
'autoSizeMax' => 30,
'multiple' => 1,
'foreign_table' => 'tx_mymovies_domain_model_formats',
'MM' => 'tx_mymovies_ownership_formats_mm',
'renderMode' => 'checkbox',
)
),
'movies' => array(
'config' => array(
'type' => 'passthrough',
)
),
The tables owners and formats only contain a single input field.
Regards,
Andreas
More information about the TYPO3-project-typo3v4mvc
mailing list