don't needed to call Propel Application
This commit is contained in:
@@ -55,9 +55,4 @@ abstract class BaseModuleGenerate extends ContainerAwareCommand {
|
|||||||
}
|
}
|
||||||
return ucfirst($name);
|
return ucfirst($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getPropelApplication()
|
|
||||||
{
|
|
||||||
return new Application("Propel", Propel::VERSION);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -64,10 +64,8 @@ class ModuleGenerateModelCommand extends BaseModuleGenerate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$propelApp = $this->getPropelApplication();
|
|
||||||
|
|
||||||
$moduleBuildPropel = new ModelBuildCommand();
|
$moduleBuildPropel = new ModelBuildCommand();
|
||||||
$moduleBuildPropel->setApplication($propelApp);
|
$moduleBuildPropel->setApplication($this->getApplication());
|
||||||
|
|
||||||
$moduleBuildPropel->run(
|
$moduleBuildPropel->run(
|
||||||
new ArrayInput(array(
|
new ArrayInput(array(
|
||||||
|
|||||||
Reference in New Issue
Block a user