Browse Source

Set parameter required for --dm option on ODM console commands.

Justin Hileman 14 years ago
parent
commit
e6b0d54531

+ 1 - 1
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(<<<EOT
 The <info>doctrine:odm:schema:create</info> command creates the default document manager's schema:
 

+ 1 - 1
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(<<<EOT
 The <info>doctrine:odm:schema:drop</info> command drops the default document manager's schema: