浏览代码

[DoctrineBundle] added a few aliases

Fabien Potencier 14 年之前
父节点
当前提交
2286452cc8

+ 1 - 0
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

@@ -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')

+ 1 - 0
src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

@@ -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')