Changeset 3624 for trunk/lib/Doctrine.php
- Timestamp:
- 01/25/08 03:18:51 (12 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Doctrine.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine.php
r3600 r3624 597 597 private static $_loadedModelFiles = array(); 598 598 599 private static $_pathModels = array(); 600 599 601 /** 600 602 * __construct … … 607 609 throw new Doctrine_Exception('Doctrine is static class. No instances can be created.'); 608 610 } 611 612 public static function getLoadedModelFiles() 613 { 614 return self::$_loadedModelFiles; 615 } 609 616 617 public static function getPathModels() 618 { 619 return self::$_pathModels; 620 } 621 610 622 /** 611 623 * getPath … … 647 659 if ($manager->getAttribute(Doctrine::ATTR_MODEL_LOADING) === Doctrine::MODEL_LOADING_CONSERVATIVE) { 648 660 self::$_loadedModelFiles[$e[0]] = $file->getPathName(); 661 self::$_pathModels[$file->getPathName()][$e[0]] = $e[0]; 662 649 663 $loadedModels[] = $e[0]; 650 664 } else { … … 659 673 if (self::isValidModelClass($className) && !in_array($className, $loadedModels)) { 660 674 $loadedModels[] = $className; 675 676 self::$_pathModels[$file->getPathName()][$className] = $className; 661 677 } 662 678 }