[TYPO3-mvc] fluid doesn't return properties of related objects
Claus Due
claus at wildside.dk
Mon Jan 30 18:21:52 CET 2012
Hi Michael,
Classic mistake. In your "as" argument, don't use {name} UNLESS you have a template variable, type string, containing the name of the template variable you want to use afterwards.
In your example the correct way would be:
<f:for each="{project.realties}" as="realty">
Everybody has made that mistake ;)
--
Cheers,
Claus
http://fedext.net
On Jan 30, 2012, at 6:11 PM, Michael Bakonyi wrote:
> Hi,
>
> I've got an object here with a relation to several others.
>
> When I try to get values from the related objects via:
>
> <f:for each="{project.realties}" as="{realty}">
> {realty.name}
> </f:for>
>
> the for-helper runs through these objects, but doesn't return any value
> respectively only linefeeds.
>
> I debugged the for-helper and can see, that it gets the objects correctly.
>
> Getters and setters are set in both the parent Domain Model aswell as in
> the related object-Model.
>
> Does anybody have a clue what might went wrong here?
>
> Cheers,
> Michael
> _______________________________________________
> 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