Show
Ignore:
Timestamp:
09/23/08 03:45:02 (4 months ago)
Author:
guilhermeblanco
Message:

[2.0] Moved Doctrine_Query to definite namespace Doctrine_ORM_Query.
Fixed paths that were referring wrong namespace resolution.
Implemented more Parser and AST classes: JoinVariableDeclaration? and Join.
Fixed wrong semantical checks of IndexBy? grammar rule. They should be in IdentificationVariableDeclaration? and JoinVariableDeclaration?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Doctrine.php

    r4964 r4971  
    756756     * isValidModelClass 
    757757     * 
    758      * Checks if what is passed is a valid Doctrine_Entity 
     758     * Checks if what is passed is a valid Doctrine_ORM_Entity 
    759759     * Will load class in to memory in order to inflect it and find out information about the class 
    760760     * 
     
    764764    public static function isValidModelClass($class) 
    765765    { 
    766         if ($class instanceof Doctrine_Entity) { 
     766        if ($class instanceof Doctrine_ORM_Entity) { 
    767767            $class = get_class($class); 
    768768        } 
     
    775775            // Skip the following classes 
    776776            // - abstract classes 
    777             // - not a subclass of Doctrine_Entity 
     777            // - not a subclass of Doctrine_ORM_Entity 
    778778            // - don't have a setTableDefinition method 
    779779            if (!$class->isAbstract() && 
    780                 $class->isSubClassOf('Doctrine_Entity')) { 
     780                $class->isSubClassOf('Doctrine_ORM_Entity')) { 
    781781 
    782782                return true;