Преглед на файлове

BugFix reflClass is not always initialized getReflClass should be used instead since it initializes the variable if it's not set

Ivan Rey преди 14 години
родител
ревизия
fa2e4c5dd1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

@@ -60,7 +60,7 @@ EOT
             $entityGenerator = $this->getEntityGenerator();
 
             foreach ($metadatas as $metadata) {
-                if ($filterEntity && $metadata->reflClass->getShortName() !== $filterEntity) {
+                if ($filterEntity && $metadata->getReflClass()->getShortName() !== $filterEntity) {
                     continue;
                 }