*/ class CreateSchemaDoctrineODMCommand extends CreateCommand { protected function configure() { parent::configure(); $this ->setName('doctrine:odm:schema:create') ->addOption('dm', null, InputOption::PARAMETER_OPTIONAL, 'The document manager to use for this command.') ->setHelp(<<doctrine:odm:schema:create command creates the default document manager's schema: ./symfony doctrine:odm:schema:create You can also optionally specify the name of a document manager to create the schema for: ./symfony doctrine:odm:schema:create --dm=default EOT ); } protected function execute(InputInterface $input, OutputInterface $output) { DoctrineODMCommand::setApplicationDocumentManager($this->application, $input->getOption('dm')); parent::execute($input, $output); } }