[TYPO3-mvc] Calling different object/repository inside fluid
Søren Malling
soren.malling at gmail.com
Thu May 6 00:12:50 CEST 2010
Hi Felix,
The more I work with Extbase, the more I get the meaning of the whole
way of working with objects :-)
But, I didn't get my problem solved (just got a better understanding :-) )
I'll try to post some of my code, based on your advice
http://pastie.org/947538
With this in my model i get the error below:
Could not determine type of relation for the property "inspector".
This is mainly caused by a missing type declaration above the property
definition.
If I declare the property with "Tx_Groupmembers_Domain_Model_Member"
(and letting out the ObjectStorage part) I still get the same error.
If any other informations my extension is needed I will love to
provide it so we can find a solution on this, which hopefully can come
in handy for other people as well.
Regards,
Søren
On Wed, May 5, 2010 at 1:51 PM, Felix Oertel <mehl at foertel.com> wrote:
> Hey
>
> Am 05.05.10 13:17, schrieb Søren Malling:
>>
>> Example:
>> <inspector>##THIS SHOULD BE THE NAME OF THE INSPECTOR###</inspector>
>
> If that is not descriptive, what is? *g*
>
>> But right now it's outputting the uid of the reference, because that
>> is the data i got in my repository for that field.
>
> Did you map that relation in your model?
>
>> In my controller i got the following code
>> $this->view->assign('clubs', $this->clubRepository->findAll());
>> $this->view->assign('members', $this->memberRepository->findAll());
>
> I don't get what you try to do. ;-) The usual way would be to map the
> members in your clubs model.
>
> @var Tx_Extbase_Persistence_ObjectStorage<Tx_YourExt_Domain_Model_Member>
> $memnbers;
>
> plus get() and set(). The members get mapped by extbase and in fluid you can
> use them with
>
> for {club.members} as {member}
>
> and don't have to assign plain members at all.
>
> Or did I missunderstand you?
>
> regards, foertel
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list