Ver código fonte

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

Ivan Rey 14 anos atrás
pai
commit
fa2e4c5dd1

+ 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;
                 }