[+BUGFIX] Extbase (Persistence): Follow-up to revision 1795. Iterateor interface...
authorJochen Rau <j.rau@web.de>
Wed, 20 Jan 2010 16:00:22 +0000 (16:00 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 20 Jan 2010 16:00:22 +0000 (16:00 +0000)
typo3/sysext/extbase/Classes/Persistence/Backend.php

index 19453ed..be6df24 100644 (file)
@@ -366,7 +366,7 @@ class Tx_Extbase_Persistence_Backend implements Tx_Extbase_Persistence_BackendIn
                                if ($object->_isNew() || $object->_isDirty($propertyName)) {
                                        $this->persistObjectStorage($propertyValue, $object, $propertyName, $queue, $row);
                                }
-                               if (is_array($propertyValue)) {
+                               if (is_array($propertyValue) || $propertyValue instanceof Iterator) {
                                        foreach ($propertyValue as $containedObject) {
                                                if ($containedObject instanceof Tx_Extbase_DomainObject_AbstractEntity) {
                                                        $queue[] = $containedObject;