[TYPO3-mvc] RFC: #8083 define default __toString method in Tx_Extbase_DomainObject_AbstractDomainObject
Marc Bastian Heinrichs
typo3 at mbh-web.de
Wed Nov 10 10:55:11 CET 2010
Hi Masi,
>> Solution:
>> Add magic method __toString to return the uid
>
> What about [<class name>:<uid>]? The uid conveys very little information.
For debugging you are right.
For linking to an related object you use {enterprise : job.enterprise}.
This would fail when the related object is defined as lazy
(see <http://forge.typo3.org/issues/10702>)
Returning the uid fixes this.
Marc Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list