[TASK] Extbase (Persistence): Remove duplicate registration in identity map
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 11 Jun 2011 22:35:22 +0000 (00:35 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 11 Jun 2011 22:35:38 +0000 (00:35 +0200)
Remove identity-map registration from
Tx_Extbase_Persistence_Repository->findByUid()
since the object has already been registered in the DataMapper
in mapSingleRow().

Thanks to Alexander Stehlik.

Change-Id: I76382f6f12cbcc290f70cd52a465f2c92f7bf4c2
Resolves: #26875

typo3/sysext/extbase/Classes/Persistence/Repository.php

index 541c852..f08c179 100644 (file)
@@ -306,9 +306,6 @@ class Tx_Extbase_Persistence_Repository implements Tx_Extbase_Persistence_Reposi
                                        )
                                        ->execute()
                                        ->getFirst();
-                       if ($object !== NULL) {
-                               $this->identityMap->registerObject($object, $uid);
-                       }
                }
                return $object;
        }