소스 검색

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