[Bug] - Default value for dm option in all commands
vencakrecl opened this issue · 3 comments
vencakrecl commented
// 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
vencakrecl commented
// current version
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm'));
// fix
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm', 'default'));
vencakrecl commented
@GromNaN Thank you.