1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Reversed r3840. Broke tests.

This commit is contained in:
jwage 2008-02-19 20:12:46 +00:00
parent d5b8a6a70b
commit dcc2a54e63
3 changed files with 7 additions and 7 deletions

View File

@ -157,9 +157,9 @@ END;
{ {
if ($modelsPath) { if ($modelsPath) {
$models = Doctrine::loadModels($modelsPath); $models = Doctrine::loadModels($modelsPath);
} } else {
$models = Doctrine::getLoadedModels(); $models = Doctrine::getLoadedModels();
}
$foreignKeys = array(); $foreignKeys = array();

View File

@ -1047,9 +1047,9 @@ class Doctrine_Export extends Doctrine_Connection_Module
{ {
if ($directory !== null) { if ($directory !== null) {
$models = Doctrine::loadModels($directory); $models = Doctrine::loadModels($directory);
} } else {
$models = Doctrine::getLoadedModels(); $models = Doctrine::getLoadedModels();
}
$this->exportClasses($models); $this->exportClasses($models);
} }

View File

@ -45,10 +45,10 @@ class Doctrine_Export_Schema
public function buildSchema($directory = null, $models = array()) public function buildSchema($directory = null, $models = array())
{ {
if ($directory) { if ($directory) {
Doctrine::loadModels($directory); $loadedModels = Doctrine::loadModels($directory);
} } else {
$loadedModels = Doctrine::getLoadedModels(); $loadedModels = Doctrine::getLoadedModels();
}
$array = array(); $array = array();