[TYPO3-mvc] Child objects receiving

Henjo Hoeksma | Stylence me at henjohoeksma.nl
Tue Jul 2 14:36:15 CEST 2013


Hi Stefan,

I would most likely solve this with a custom repository method.
In the method get the notebook by the user, next the tags by the notebook,
return the tags.
Performance wise I would use a statement here and give the tags back as an
array (stripped of duplicates of course).

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Tue, Jul 2, 2013 at 2:03 PM, Stefan Kruse <besucher80 at gmx.de> wrote:

> Hello,
>
>
>
> i have a user object. From there I have a 1:n relation to an notepad Object
> and from there a 1:n relation to a tag object.
>
>
>
> The background: every user can have more notepad objects. And for every
> notepad object there could be more tags attached to.
>
>
>
> Now I have the situation that I need all tags from a user, that he have
> used
> for the notepad objects.
>
>
>
> Ok, I can get all notepad entries for the user. And then? Do I really have
> to iterate with a loop over the result ( the notepad entries ) or is there
> a
> better way which I don't know?
>
>
>
> Thanks Stefan
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list