doctrine/DoctrineMongoDBBundle

[Bug] - Default value for dm option in all commands

vencakrecl opened this issue · 3 comments

// error:
Doctrine\Bundle\MongoDBBundle\Command\DoctrineODMCommand::setApplicationDocumentManager(): Argument #2 ($dmName) must be of type string, null given, called in /var/www/html/vendor/doctrine/mongodb-odm-bundle/src/Command/UpdateSchemaDoctrineODMCommand.php on line 41 
// current version
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm'));

// fix
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm', 'default'));

Thanks for the feedback. It should be fixed by #837

@GromNaN Thank you.