generate Model using Propel command in Thelia app

This commit is contained in:
Manuel Raynaud
2013-07-11 16:44:18 +02:00
parent 1a7c9b2fd2
commit 98589cc2b6
4 changed files with 99 additions and 1 deletions

View File

@@ -22,8 +22,11 @@
/*************************************************************************************/
namespace Thelia\Command;
use Propel\Runtime\Propel;
use Symfony\Component\Console\Application;
abstract class BaseModuleGenerate extends ContainerAwareCommand {
abstract class BaseModuleGenerate extends ContainerAwareCommand {
protected $module;
protected $moduleDirectory;
@@ -52,4 +55,9 @@ namespace Thelia\Command;
}
return ucfirst($name);
}
protected function getPropelApplication()
{
return new Application("Propel", Propel::VERSION);
}
}