Changeset 4971 for trunk/lib/Doctrine.php
- Timestamp:
- 09/23/08 03:45:02 (4 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Doctrine.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine.php
r4964 r4971 756 756 * isValidModelClass 757 757 * 758 * Checks if what is passed is a valid Doctrine_ Entity758 * Checks if what is passed is a valid Doctrine_ORM_Entity 759 759 * Will load class in to memory in order to inflect it and find out information about the class 760 760 * … … 764 764 public static function isValidModelClass($class) 765 765 { 766 if ($class instanceof Doctrine_ Entity) {766 if ($class instanceof Doctrine_ORM_Entity) { 767 767 $class = get_class($class); 768 768 } … … 775 775 // Skip the following classes 776 776 // - abstract classes 777 // - not a subclass of Doctrine_ Entity777 // - not a subclass of Doctrine_ORM_Entity 778 778 // - don't have a setTableDefinition method 779 779 if (!$class->isAbstract() && 780 $class->isSubClassOf('Doctrine_ Entity')) {780 $class->isSubClassOf('Doctrine_ORM_Entity')) { 781 781 782 782 return true;