[TYPO3-mvc] Calling different object/repository inside fluid
Søren Malling
soren.malling at gmail.com
Thu May 6 09:15:05 CEST 2010
Hi,
tx_groupmembers_domain_model_member extends
Tx_Extbase_Domain_Model_FrontendUser so I have no TCA for this.
But the TCA for the inspector fields in
tx_groupmembers_domain_model_club is as follow
'inspector' => array (
'exclude' => 1,
'label' =>
'LLL:EXT:groupmembers/Resources/Private/Language/locallang_db.xml:tx_groupmembers_domain_model_club.inspector',
'config' => array (
"type" => "group",
"internal_type" => "db",
"allowed" => "fe_users",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
)
),
> Make sure you use the same annotation in @param as you do in @var. if you
> annotate your variable to be an ObjectStorage, the @param of setter and the
> @return of getter have to be ObjectStorages as well.
>
> is there one club president or more of them? if it's one, use
> Tx_Groupmembers_Domain_Model_Member, it they are more then one, use an
> ObjectStorage.
I've changed the first paste linked to, so now the code reflects the
current code, only using Tx_Groupmembers_Domain_Model_Member. There's
only on
http://pastie.org/948012
> Your extension is named "groupmembers" (foldername in typo3conf/ext), aight?
> Not something like "group_members" or similar ...
No naming problem, I assure you :-)
More information about the TYPO3-project-typo3v4mvc
mailing list