[TYPO3-mvc] FLUID :: how can you access properties of m:n related objects?

Henjo Hoeksma me at henjohoeksma.nl
Thu Nov 3 15:43:49 CET 2011


.... which you can make them an array by appending ->toArray() in your
repository method.

If needed...
If desired...

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 Thu, Nov 3, 2011 at 15:23, Oliver Klee <typo3-german-02 at oliverklee.de>wrote:

> Hi,
>
> Am 03.11.2011 12:07, schrieb Roland:
> > i am really suprised, that this does not work in my list-view FLUID
> > template automatically:
> >
> > {produkt.zulassungen.0.name}
> >
> > "Get the name of the first Zulassung associated with the current
> > Produkt" (Produkts are iterated via for-viewhelper in list template)
>
> AFAIK, the ".0" notation only works for arrays, not for ObjectStorages,
> and your Zulassungen probably is an ObjectStorage.
>
>
> Oli
> _______________________________________________
> 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