Set parameter required for --dm option on ODM console commands.
This commit is contained in:
parent
51553211f3
commit
e6b0d54531
@ -22,7 +22,7 @@ class CreateSchemaDoctrineODMCommand extends CreateCommand
|
||||
|
||||
$this
|
||||
->setName('doctrine:odm:schema:create')
|
||||
->addOption('dm', null, InputOption::PARAMETER_OPTIONAL, 'The document manager to use for this command.')
|
||||
->addOption('dm', null, InputOption::PARAMETER_REQUIRED, 'The document manager to use for this command.')
|
||||
->setHelp(<<<EOT
|
||||
The <info>doctrine:odm:schema:create</info> command creates the default document manager's schema:
|
||||
|
||||
|
@ -22,7 +22,7 @@ class DropSchemaDoctrineODMCommand extends DropCommand
|
||||
|
||||
$this
|
||||
->setName('doctrine:odm:schema:drop')
|
||||
->addOption('dm', null, InputOption::PARAMETER_OPTIONAL, 'The document manager to use for this command.')
|
||||
->addOption('dm', null, InputOption::PARAMETER_REQUIRED, 'The document manager to use for this command.')
|
||||
->setHelp(<<<EOT
|
||||
The <info>doctrine:odm:schema:drop</info> command drops the default document manager's schema:
|
||||
|
||||
|
Reference in New Issue
Block a user