Merge "[BUGFIX] Adjust unit tests to changes"
authorFelix Oertel <f@oer.tel>
Tue, 12 Jul 2011 17:48:24 +0000 (19:48 +0200)
committerGerrit Code Review <gerrit@review.typo3.org>
Tue, 12 Jul 2011 17:48:24 +0000 (19:48 +0200)
typo3/sysext/extbase/Classes/Reflection/Service.php

index 4479b47..b99cc1b 100644 (file)
@@ -407,7 +407,7 @@ class Tx_Extbase_Reflection_Service implements t3lib_Singleton {
                if (!class_exists($className)) {
                        throw new Tx_Extbase_Reflection_Exception_UnknownClass('The classname "' . $className . '" was not found and thus can not be reflected.', 1278450972);
                }
-               $classSchema = $this->objectManager->get('Tx_Extbase_Reflection_ClassSchema', $className);
+               $classSchema = $this->objectManager->create('Tx_Extbase_Reflection_ClassSchema', $className);
                if (is_subclass_of($className, 'Tx_Extbase_DomainObject_AbstractEntity')) {
                        $classSchema->setModelType(Tx_Extbase_Reflection_ClassSchema::MODELTYPE_ENTITY);