Ejemplo n.º 1
0
 public static function getDmModels()
 {
     if (null === self::$dmModels) {
         $baseFiles = glob(dmOs::join(sfConfig::get('sf_lib_dir'), 'model/doctrine/dmCorePlugin/base/Base*.class.php'));
         self::$dmModels = self::getModelsFromBaseFiles($baseFiles);
     }
     return self::$dmModels;
 }
Ejemplo n.º 2
0
 public static function getDmModels()
 {
     if (null === self::$dmModels) {
         $baseFiles = sfFinder::type('file')->name('/Base\\w+.class.php/i')->maxDepth(0)->in(dmOs::join(sfConfig::get("sf_lib_dir"), "model/doctrine/dmCorePlugin/base"));
         self::$dmModels = self::getModelsFromBaseFiles($baseFiles);
     }
     return self::$dmModels;
 }