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

Joerg Schoppet joerg at schoppet.de
Tue Jul 21 14:45:59 CEST 2009


Jochen Rau schrieb:
> 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.
> 
Puh, good to know, I though I totally missunderstood something ;-)

It is also in the last revision 
http://forge.typo3.org/repositories/diff/typo3v4-mvc/blog_example/trunk/Classes/Domain/Model/Blog.php?rev=971


Joerg


More information about the TYPO3-project-typo3v4mvc mailing list