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

Sebastian Schreiber me at schreibersebastian.de
Thu Nov 3 12:06:38 CET 2011


Am 03.11.2011 12:01, schrieb Roland:
>> If I understood correctly, the Zulassungen are related to the Procukt,
>> correct?
>>
>> In that case it would be possible to retrieve it like this in your
>> showAction:
>>
>> $firstZulassung = $product->getZulassungen()->getFirst();
>
> this looks promising, but i need it in the listAction.
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
Iterate over your produkts in your view and than try to get the very 
first Zulassung for every produkt with
produkt.firstZulassung internally your getFirstZulassung is called.

-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list