[+BUGFIX] Extbase (Persistence): LazyLoadingProxy now triggers also the magic toStrin...
authorJochen Rau <j.rau@web.de>
Sun, 2 May 2010 09:37:34 +0000 (09:37 +0000)
committerJochen Rau <j.rau@web.de>
Sun, 2 May 2010 09:37:34 +0000 (09:37 +0000)
typo3/sysext/extbase/Classes/Persistence/LazyLoadingProxy.php

index bb20883..7f81660 100644 (file)
@@ -148,6 +148,16 @@ class Tx_Extbase_Persistence_LazyLoadingProxy implements Iterator, Tx_Extbase_Pe
        }
        
        /**
+        * Magic toString call implementation.
+        *
+        * @return void
+        */
+       public function __toString() {
+               $realInstance = $this->_loadRealInstance();
+               return $realInstance->__toString();
+       }
+       
+       /**
         * Returns the current value of the storage array
         *
         * @return void