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

This commit is contained in:
Ivan Rey 2011-04-17 21:35:37 -05:00 committed by unknown
parent ef81002634
commit fa2e4c5dd1

View File

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