Show
Ignore:
Timestamp:
01/25/08 03:18:51 (12 months ago)
Author:
jwage
Message:

Work on migrations diff and fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Doctrine.php

    r3600 r3624  
    597597    private static $_loadedModelFiles = array(); 
    598598 
     599    private static $_pathModels = array(); 
     600 
    599601    /** 
    600602     * __construct 
     
    607609        throw new Doctrine_Exception('Doctrine is static class. No instances can be created.'); 
    608610    } 
     611 
     612    public static function getLoadedModelFiles() 
     613    { 
     614        return self::$_loadedModelFiles; 
     615    } 
    609616     
     617    public static function getPathModels() 
     618    { 
     619        return self::$_pathModels; 
     620    } 
     621 
    610622    /** 
    611623     * getPath 
     
    647659                        if ($manager->getAttribute(Doctrine::ATTR_MODEL_LOADING) === Doctrine::MODEL_LOADING_CONSERVATIVE) { 
    648660                            self::$_loadedModelFiles[$e[0]] = $file->getPathName(); 
     661                            self::$_pathModels[$file->getPathName()][$e[0]] = $e[0]; 
     662 
    649663                            $loadedModels[] = $e[0]; 
    650664                        } else { 
     
    659673                                    if (self::isValidModelClass($className) && !in_array($className, $loadedModels)) { 
    660674                                        $loadedModels[] = $className; 
     675 
     676                                        self::$_pathModels[$file->getPathName()][$className] = $className; 
    661677                                    } 
    662678                                }