[TYPO3-mvc] FYI: Progress in implementing support for generic domain models

Jochen Rau jochen.rau at typoplanet.de
Tue Jul 21 14:39:43 CEST 2009


Hi Joerg.

Joerg Schoppet wrote:
>> --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?

Yep. That was my fault. I did not adjust the comment.

Jochen


-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list