improved _isDoctrineEntity check
This commit is contained in:
parent
90047298c5
commit
b140ea7163
@ -63,14 +63,7 @@ class Doctrine_Query_Parser_AbstractSchemaName extends Doctrine_Query_ParserRule
|
||||
|
||||
|
||||
protected function _isDoctrineEntity($componentName)
|
||||
{
|
||||
if (class_exists($componentName)) {
|
||||
$reflectionClass = new ReflectionClass($componentName);
|
||||
$dctrnEntityReflectionClass = new ReflectionClass('Doctrine_ORM_Entity');
|
||||
|
||||
return $reflectionClass->isSubclassOf($dctrnEntityReflectionClass);
|
||||
}
|
||||
|
||||
return false;
|
||||
{
|
||||
return class_exists($componentName) && is_subclass_of($componentName, 'Doctrine_ORM_Entity');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user