Changeset 3835 for trunk/lib/Doctrine.php
- Timestamp:
- 02/19/08 00:24:32 (11 months ago)
- Files:
-
- 1 modified
-
trunk/lib/Doctrine.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Doctrine.php
r3754 r3835 690 690 } 691 691 692 return self::filterInvalidModels($loadedModels); 692 // We do not want to filter invalid models when using conservative model loading 693 // The filtering requires that the class be loaded and inflected in order to determine if it is 694 // a valid class. 695 if ($manager->getAttribute(Doctrine::ATTR_MODEL_LOADING) == Doctrine::MODEL_LOADING_CONSERVATIVE) { 696 return $loadedModels; 697 } else { 698 return self::filterInvalidModels($loadedModels); 699 } 693 700 } 694 701 … … 715 722 * 716 723 * Filter through an array of classes and return all the classes that are valid models 724 * This will inflect the class, causing it to be loaded in to memory. 717 725 * 718 726 * @param classes Array of classes to filter through, otherwise uses get_declared_classes() … … 736 744 * 737 745 * Checks if what is passed is a valid Doctrine_Record 746 * Will load class in to memory in order to inflect it and find out information about the class 738 747 * 739 748 * @param mixed $class Can be a string named after the class, an instance of the class, or an instance of the class reflected