[+BUGFIX] Extbase (Persistence): Fixed a problem where the cache was cleared at every...
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / DomainObject / AbstractValueObject.php
index 983dcc7..361cf9d 100644 (file)
@@ -40,6 +40,16 @@ abstract class Tx_Extbase_DomainObject_AbstractValueObject extends Tx_Extbase_Do
        public function getValue() {
                return $this->__toString();
        }
+       
+       /**
+        * Clone method. Sets the _isClone property.
+        *
+        * @return void
+        */
+       public function __clone() {
+               $this->isClone = TRUE;
+               $this->uid = NULL;
+       }
 
 }
 ?>
\ No newline at end of file