[+BUGFIX] Followup for #6130. SplObjectStorages don't have a method _memorizeCleanSta...
authorFranz Koch <typo3@elements-net.de>
Mon, 21 Jun 2010 16:08:01 +0000 (16:08 +0000)
committerFranz Koch <typo3@elements-net.de>
Mon, 21 Jun 2010 16:08:01 +0000 (16:08 +0000)
typo3/sysext/extbase/Classes/Persistence/Mapper/DataMapper.php

index f9058e0..3ff9e6e 100644 (file)
@@ -256,7 +256,6 @@ class Tx_Extbase_Persistence_Mapper_DataMapper implements t3lib_Singleton {
                                        case 'SplObjectStorage':
                                        case 'Tx_Extbase_Persistence_ObjectStorage':
                                                $propertyValue = $this->mapResultToPropertyValue($object, $propertyName, $this->fetchRelated($object, $propertyName, $row[$columnName]));
-                                               $propertyValue->_memorizeCleanState();
                                        break;
                                        default:
                                                if (($propertyData['type'] === 'DateTime') || in_array('DateTime', class_parents($propertyData['type']))) {
@@ -449,6 +448,7 @@ class Tx_Extbase_Persistence_Mapper_DataMapper implements t3lib_Singleton {
                                        foreach ($objects as $object) {
                                                $propertyValue->attach($object);
                                        }
+                                       $propertyValue->_memorizeCleanState();
                                } else {
                                        $propertyValue = $objects;
                                }