diff --git a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/CreateSchemaDoctrineODMCommand.php b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/CreateSchemaDoctrineODMCommand.php index 37ca66dae7..52cd8d91b0 100644 --- a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/CreateSchemaDoctrineODMCommand.php +++ b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/CreateSchemaDoctrineODMCommand.php @@ -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(<<doctrine:odm:schema:create command creates the default document manager's schema: diff --git a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DropSchemaDoctrineODMCommand.php b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DropSchemaDoctrineODMCommand.php index 69cc9a6e5c..37f7005b67 100644 --- a/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DropSchemaDoctrineODMCommand.php +++ b/src/Symfony/Bundle/DoctrineMongoDBBundle/Command/DropSchemaDoctrineODMCommand.php @@ -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(<<doctrine:odm:schema:drop command drops the default document manager's schema: