Author: romanb
Date: 2008-09-12 13:04:25 +0100 (Fri, 12 Sep 2008)
New Revision: 4936
Modified:
trunk/lib/Doctrine/Query/Parser/AbstractSchemaName.php
Log:
improved _isDoctrineEntity check
Modified: trunk/lib/Doctrine/Query/Parser/AbstractSchemaName.php
===================================================================
--- trunk/lib/Doctrine/Query/Parser/AbstractSchemaName.php 2008-09-12
11:01:59 UTC (rev 4935)
+++ trunk/lib/Doctrine/Query/Parser/AbstractSchemaName.php 2008-09-12
12:04:25 UTC (rev 4936)
@@ -63,14 +63,7 @@
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');
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---