[TYPO3-mvc] Limit the "depht" of object relations

Frenck Lutke frenck at innologi.nl
Thu Jun 27 18:00:16 CEST 2013


Hi Jan,

> Or is my example the "candidate" for "lazy loading"?

Unless you interact with said relations in every single use case, I 
would say it's worth trying.

> As far is i know this is not yet possible in extbase 1.3, istn't it?

Yes it is. Just add the @lazy annotation to the properties' PHPdoc you 
want lazy-loaded in the domain object (as documented [1]), if the 
property is a of objectStorage or domain object type, and extbase takes 
care of it for you.

HTH,
Frenck

[1] 
http://docs.typo3.org/typo3cms/ExtbaseFluidBook/5-Domain/2-implementing-the-domain-model.html


More information about the TYPO3-project-typo3v4mvc mailing list