[TYPO3-mvc] lazy loading __toString linkViewHelper

Martin Kutschker masi-no at spam-typo3.org
Thu Jun 3 13:55:44 CEST 2010


Franz Koch schrieb:
> Hi,
> 
>> Do I have to write the __toString method in every model because of that?
>> I think Fluid should do this for me. Or the LazyLoading mechanism. What
>> do you think?
> 
> I think there should be a default __toString method defined in
> Tx_Extbase_DomainObject_AbstractDomainObject that's returning the uid of
> the object by default. Expecially when extbase/fluid rely on this method.

I thinl all object should have a __toString() method. Nothing is more annoying when you try to debug
 a variable and cannot do (okay a hack) a simple echo $var without getting a PHP error.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list