Changeset 3839
- Timestamp:
- 02/19/08 19:21:31 (17 months ago)
- Location:
- branches/0.10/lib/Doctrine
- Files:
-
- 3 modified
-
Export.php (modified) (2 diffs)
-
Export/Schema.php (modified) (1 diff)
-
Migration/Builder.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Export.php
r3791 r3839 1042 1042 { 1043 1043 if ($directory !== null) { 1044 $models =Doctrine::loadModels($directory);1045 } else {1046 $models = Doctrine::getLoadedModels(); 1047 }1048 1044 Doctrine::loadModels($directory); 1045 } 1046 1047 $models = Doctrine::getLoadedModels(); 1048 1049 1049 $this->exportClasses($models); 1050 1050 } … … 1247 1247 if ($directory !== null) { 1248 1248 $models = Doctrine::loadModels($directory); 1249 } else {1250 $models = Doctrine::getLoadedModels(); 1251 }1252 1249 } 1250 1251 $models = Doctrine::getLoadedModels(); 1252 1253 1253 return $this->exportClassesSql($models); 1254 1254 } -
branches/0.10/lib/Doctrine/Export/Schema.php
r3077 r3839 46 46 { 47 47 if ($directory) { 48 $loadedModels = Doctrine::loadModels($directory); 49 } else { 50 $loadedModels = Doctrine::getLoadedModels(); 48 Doctrine::loadModels($directory); 51 49 } 50 51 $loadedModels = Doctrine::getLoadedModels(); 52 52 53 53 $array = array(); -
branches/0.10/lib/Doctrine/Migration/Builder.php
r3258 r3839 156 156 public function generateMigrationsFromModels($modelsPath = null) 157 157 { 158 if ($modelsPath ) {159 $models =Doctrine::loadModels($modelsPath);160 } else {161 $models = Doctrine::getLoadedModels(); 162 }163 158 if ($modelsPath !== null) { 159 Doctrine::loadModels($modelsPath); 160 } 161 162 $models = Doctrine::getLoadedModels(); 163 164 164 $foreignKeys = array(); 165 165