Commit 779003ed authored by Jonathan.Wage's avatar Jonathan.Wage

Removed Facade and moved all static methods to Doctrine class.

parent dfdcf002
This diff is collapsed.
This diff is collapsed.
......@@ -39,6 +39,6 @@ class Doctrine_Task_Compile extends Doctrine_Task
public function execute()
{
Doctrine_Facade::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array()));
Doctrine::compile($this->getArgument('compiled_path'), $this->getArgument('drivers', array()));
}
}
\ No newline at end of file
......@@ -37,6 +37,6 @@ class Doctrine_Task_CreateDb extends Doctrine_Task
public function execute()
{
Doctrine_Facade::createDatabases($this->getArgument('connection'));
Doctrine::createDatabases($this->getArgument('connection'));
}
}
\ No newline at end of file
......@@ -38,6 +38,6 @@ class Doctrine_Task_CreateTables extends Doctrine_Task
public function execute()
{
Doctrine_Facade::createTablesFromModels($this->getArgument('models_path'));
Doctrine::createTablesFromModels($this->getArgument('models_path'));
}
}
\ No newline at end of file
......@@ -38,6 +38,6 @@ class Doctrine_Task_DropDb extends Doctrine_Task
public function execute()
{
Doctrine_Facade::dropDatabases($this->getArgument('connection'));
Doctrine::dropDatabases($this->getArgument('connection'));
}
}
\ No newline at end of file
......@@ -39,7 +39,7 @@ class Doctrine_Task_DumpData extends Doctrine_Task
public function execute()
{
Doctrine_Facade::loadModels($this->getArgument('models_path'));
Doctrine::loadModels($this->getArgument('models_path'));
$individualFiles = $this->getArgument('individual_files') ? true:false;
......@@ -53,6 +53,6 @@ class Doctrine_Task_DumpData extends Doctrine_Task
}
}
Doctrine_Facade::dumpData($path, $individualFiles);
Doctrine::dumpData($path, $individualFiles);
}
}
\ No newline at end of file
......@@ -39,6 +39,6 @@ class Doctrine_Task_GenerateMigration extends Doctrine_Task
public function execute()
{
Doctrine_Facade::generateMigrationClass($this->getArgument('class_name'), $this->getArgument('migrations_path'));
Doctrine::generateMigrationClass($this->getArgument('class_name'), $this->getArgument('migrations_path'));
}
}
\ No newline at end of file
......@@ -38,6 +38,6 @@ class Doctrine_Task_GenerateModelsFromDb extends Doctrine_Task
public function execute()
{
Doctrine_Facade::generateModelsFromDb($this->getArgument('models_path'), (array) $this->getArgument('connection'));
Doctrine::generateModelsFromDb($this->getArgument('models_path'), (array) $this->getArgument('connection'));
}
}
\ No newline at end of file
......@@ -39,6 +39,6 @@ class Doctrine_Task_GenerateModelsFromYaml extends Doctrine_Task
public function execute()
{
Doctrine_Facade::generateModelsFromYaml($this->getArgument('yaml_schema_path'), $this->getArgument('models_path'));
Doctrine::generateModelsFromYaml($this->getArgument('yaml_schema_path'), $this->getArgument('models_path'));
}
}
\ No newline at end of file
......@@ -47,7 +47,7 @@ class Doctrine_Task_GenerateSql extends Doctrine_Task
throw new Doctrine_Task_Exception('Invalid sql path.');
}
$sql = Doctrine_Facade::generateSqlFromModels($this->getArgument('models_path'));
$sql = Doctrine::generateSqlFromModels($this->getArgument('models_path'));
file_put_contents($path, $sql);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment