[+BUGFIX] Extbase (Persistence): Only set the PID in case it is not part of your...
authorSebastian Kurfürst <sebastian@typo3.org>
Tue, 14 Jul 2009 20:44:39 +0000 (20:44 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Tue, 14 Jul 2009 20:44:39 +0000 (20:44 +0000)
typo3/sysext/extbase/Classes/Persistence/Backend.php

index 1a555a2..f333caf 100644 (file)
@@ -447,7 +447,7 @@ class Tx_Extbase_Persistence_Backend implements Tx_Extbase_Persistence_BackendIn
                if ($dataMap->hasTimestampColumn()) {
                        $row[$dataMap->getTimestampColumnName()] = $GLOBALS['EXEC_TIME'];
                }
-               if ($dataMap->hasPidColumn()) {
+               if ($dataMap->hasPidColumn() && !isset($row['pid'])) {
                        $row['pid'] = $this->storagePageId;
                }
                if ($parentObject instanceof Tx_Extbase_DomainObject_DomainObjectInterface && !empty($parentPropertyName)) {