[TYPO3-mvc] FYI: Progress in implementing support for generic domain models
Joerg Schoppet
joerg at schoppet.de
Tue Jul 21 14:36:39 CEST 2009
Hi,
Jochen Rau schrieb:
> Inside the Blog you have
>
> --8<--- snip -----
> /**
> * The Administrator of the blog
> *
> * @var Tx_Extbase_Domain_Model_FrontEndUser
> */
> protected $administrator;
> --8<--- snap -----
>
>
> and in the $TCA you specify
>
> --8<--- snip -----
> 'administrator' => Array (
> [...]
> 'config' => Array (
> 'type' => 'select',
> 'foreign_table' => 'fe_users',
> 'foreign_class' => 'Tx_BlogExample_Domain_Model_Administrator',
> 'maxitems' => 1,
> )
> ),
> --8<--- snap -----
why do you define $administrator as Tx_Extbase_Domain_Model_FrontEndUser
and not as Tx_BlogExample_Domain_Model_Administrator?
Joerg
More information about the TYPO3-project-typo3v4mvc
mailing list