[DoctrineBundle] added a few aliases

This commit is contained in:
Fabien Potencier 2011-06-07 18:26:28 +02:00
parent d84728e278
commit 2286452cc8
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class GenerateEntitiesDoctrineCommand extends DoctrineCommand
{
$this
->setName('doctrine:generate:entities')
->setAliases(array('generate:doctrine:entities'))
->setDescription('Generate entity classes and method stubs from your mapping information')
->addArgument('name', InputArgument::REQUIRED, 'A bundle name, a namespace, or a class name')
->addOption('path', null, InputOption::VALUE_REQUIRED, 'The path where to generate entities when it cannot be guessed')

View File

@ -30,6 +30,7 @@ class GenerateEntityDoctrineCommand extends DoctrineCommand
{
$this
->setName('doctrine:generate:entity')
->setAliases(array('generate:doctrine:entity'))
->setDescription('Generate a new Doctrine entity inside a bundle')
->addArgument('entity', InputArgument::REQUIRED, 'The entity class name to initialize (shortcut notation)')
->addArgument('fields', InputArgument::OPTIONAL, 'The fields to create with the new entity')