Reversed r3840. Broke tests.
This commit is contained in:
parent
d5b8a6a70b
commit
dcc2a54e63
@ -157,10 +157,10 @@ END;
|
|||||||
{
|
{
|
||||||
if ($modelsPath) {
|
if ($modelsPath) {
|
||||||
$models = Doctrine::loadModels($modelsPath);
|
$models = Doctrine::loadModels($modelsPath);
|
||||||
|
} else {
|
||||||
|
$models = Doctrine::getLoadedModels();
|
||||||
}
|
}
|
||||||
|
|
||||||
$models = Doctrine::getLoadedModels();
|
|
||||||
|
|
||||||
$foreignKeys = array();
|
$foreignKeys = array();
|
||||||
|
|
||||||
foreach ($models as $model) {
|
foreach ($models as $model) {
|
||||||
|
@ -1047,10 +1047,10 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,11 +45,11 @@ 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();
|
||||||
|
|
||||||
$parent = new ReflectionClass('Doctrine_Record');
|
$parent = new ReflectionClass('Doctrine_Record');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user