Made methods static.
This commit is contained in:
parent
9440cf04f6
commit
526c4ab1c8
@ -859,7 +859,7 @@ final class Doctrine
|
|||||||
* @param string $migrationsPath
|
* @param string $migrationsPath
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateMigrationsFromDb($migrationsPath)
|
public static function generateMigrationsFromDb($migrationsPath)
|
||||||
{
|
{
|
||||||
$builder = new Doctrine_Migration_Builder($migrationsPath);
|
$builder = new Doctrine_Migration_Builder($migrationsPath);
|
||||||
|
|
||||||
@ -873,7 +873,7 @@ final class Doctrine
|
|||||||
* @param string $modelsPath
|
* @param string $modelsPath
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function generateMigrationsFromModels($migrationsPath, $modelsPath = null)
|
public static function generateMigrationsFromModels($migrationsPath, $modelsPath = null)
|
||||||
{
|
{
|
||||||
$builder = new Doctrine_Migration_Builder($migrationsPath);
|
$builder = new Doctrine_Migration_Builder($migrationsPath);
|
||||||
|
|
||||||
@ -886,7 +886,7 @@ final class Doctrine
|
|||||||
* @param string $tableName
|
* @param string $tableName
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getTable($tableName)
|
public static function getTable($tableName)
|
||||||
{
|
{
|
||||||
return Doctrine_Manager::table($tableName);
|
return Doctrine_Manager::table($tableName);
|
||||||
}
|
}
|
||||||
@ -898,7 +898,7 @@ final class Doctrine
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function connection($adapter, $name = null)
|
public static function connection($adapter, $name = null)
|
||||||
{
|
{
|
||||||
return Doctrine_Manager::connection($adapter, $name);
|
return Doctrine_Manager::connection($adapter, $name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user