[+BUGFIX] Extbase (Persistence): Changes made to a domain object sitting at a "dirty...
authorJochen Rau <j.rau@web.de>
Sun, 20 Jun 2010 07:18:15 +0000 (07:18 +0000)
committerJochen Rau <j.rau@web.de>
Sun, 20 Jun 2010 07:18:15 +0000 (07:18 +0000)
typo3/sysext/extbase/Classes/Persistence/Backend.php

index 7867302..309f603 100644 (file)
@@ -383,11 +383,11 @@ class Tx_Extbase_Persistence_Backend implements Tx_Extbase_Persistence_BackendIn
                                        if ($propertyValue->_isNew()) {
                                                if ($propertyValue instanceof Tx_Extbase_DomainObject_AbstractEntity) {
                                                        $this->insertObject($propertyValue);
-                                                       $queue[] = $propertyValue;
                                                } else {
                                                        $this->persistValueObject($propertyValue);
                                                }
                                        }
+                                       $queue[] = $propertyValue;
                                        $row[$columnMap->getColumnName()] = $this->getPlainValue($propertyValue);
                                }
                        } elseif ($object instanceof Tx_Extbase_DomainObject_AbstractValueObject || $object->_isNew() || $object->_isDirty($propertyName)) {