[TYPO3-english] Re: Extbase -> reduce queries in m:m relations

Viktor Livakivskyi invisible.kinder at gmail.com
Tue Sep 10 10:49:05 CEST 2013


Hi, all.

I'll jsut add a link to a basic example of how it works: http://sourcemaking.com/design_patterns/proxy/php

So, basically, once any method from real class is triggered, the proxy class makes real instance of it. Meaning, that it doesn't matter if you call ->getTitle() or ->getComplexRelationWIthLotOfCalculations() - in both cases your real object with all properties will be created.

So, lazy loading makes sence to set not on your initial object (becasue all of it's m:n relations will be created anyway), but on it's properties, that  are complex objects as well.


More information about the TYPO3-english mailing list