@@ -52,17 +52,17 @@ discard block |
||
| 52 | 52 | protected function configure() |
| 53 | 53 | { |
| 54 | 54 | $this->setAliases(['orm:generate:entities']) |
| 55 | - ->setDescription('Generate entity classes and method stubs from your mapping information') |
|
| 56 | - ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.') |
|
| 57 | - ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 58 | - ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false) |
|
| 59 | - ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true) |
|
| 60 | - ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false) |
|
| 61 | - ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true) |
|
| 62 | - ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.') |
|
| 63 | - ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4) |
|
| 64 | - ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.') |
|
| 65 | - ->setHelp(<<<EOT |
|
| 55 | + ->setDescription('Generate entity classes and method stubs from your mapping information') |
|
| 56 | + ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.') |
|
| 57 | + ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 58 | + ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false) |
|
| 59 | + ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true) |
|
| 60 | + ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false) |
|
| 61 | + ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true) |
|
| 62 | + ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.') |
|
| 63 | + ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4) |
|
| 64 | + ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.') |
|
| 65 | + ->setHelp(<<<EOT |
|
| 66 | 66 | Generate entity classes and method stubs from your mapping information. |
| 67 | 67 | |
| 68 | 68 | If you use the <comment>--update-entities</comment> or <comment>--regenerate-entities</comment> flags your existing |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | class is supposed to extend which. You have to adjust the entity |
| 83 | 83 | code manually for inheritance to work! |
| 84 | 84 | EOT |
| 85 | - ); |
|
| 85 | + ); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -51,10 +51,10 @@ |
||
| 51 | 51 | protected function configure() |
| 52 | 52 | { |
| 53 | 53 | $this->setAliases(['orm:generate:repositories']) |
| 54 | - ->setDescription('Generate repository classes from your mapping information') |
|
| 55 | - ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.') |
|
| 56 | - ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 57 | - ->setHelp('Generate repository classes from your mapping information.'); |
|
| 54 | + ->setDescription('Generate repository classes from your mapping information') |
|
| 55 | + ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.') |
|
| 56 | + ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 57 | + ->setHelp('Generate repository classes from your mapping information.'); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
@@ -52,16 +52,16 @@ discard block |
||
| 52 | 52 | protected function configure() |
| 53 | 53 | { |
| 54 | 54 | $this->setAliases(['orm:convert:mapping']) |
| 55 | - ->setDescription('Convert mapping information between supported formats') |
|
| 56 | - ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.') |
|
| 57 | - ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.') |
|
| 58 | - ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 59 | - ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.') |
|
| 60 | - ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.') |
|
| 61 | - ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.') |
|
| 62 | - ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4) |
|
| 63 | - ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.') |
|
| 64 | - ->setHelp(<<<EOT |
|
| 55 | + ->setDescription('Convert mapping information between supported formats') |
|
| 56 | + ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.') |
|
| 57 | + ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.') |
|
| 58 | + ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.') |
|
| 59 | + ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.') |
|
| 60 | + ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.') |
|
| 61 | + ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.') |
|
| 62 | + ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4) |
|
| 63 | + ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.') |
|
| 64 | + ->setHelp(<<<EOT |
|
| 65 | 65 | Convert mapping information between supported formats. |
| 66 | 66 | |
| 67 | 67 | This is an execute <info>one-time</info> command. It should not be necessary for |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | \$config->setFilterSchemaAssetsExpression(\$regexp); |
| 86 | 86 | EOT |
| 87 | - ); |
|
| 87 | + ); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |