[+TASK] Extbase (Persistence): Replaced get_class() by getRepositoryClassName()....
authorJochen Rau <j.rau@web.de>
Tue, 30 Mar 2010 09:28:39 +0000 (09:28 +0000)
committerJochen Rau <j.rau@web.de>
Tue, 30 Mar 2010 09:28:39 +0000 (09:28 +0000)
typo3/sysext/extbase/Classes/Persistence/Repository.php

index a8f0cd3..0a12504 100644 (file)
@@ -79,7 +79,7 @@ class Tx_Extbase_Persistence_Repository implements Tx_Extbase_Persistence_Reposi
                $this->removedObjects = new Tx_Extbase_Persistence_ObjectStorage();
                $this->queryFactory = t3lib_div::makeInstance('Tx_Extbase_Persistence_QueryFactory'); // singleton
                $this->persistenceManager = Tx_Extbase_Dispatcher::getPersistenceManager();
-               $this->persistenceManager->registerRepositoryClassName(get_class($this));
+               $this->persistenceManager->registerRepositoryClassName($this->getRepositoryClassName());
                $this->objectType = str_replace(array('_Repository_', 'Repository'), array('_Model_', ''), $this->getRepositoryClassName());
        }