doctrine / DoctrineMongoDBBundle

Integrates Doctrine MongoDB ODM with Symfony
http://symfony.com/doc/current/bundles/DoctrineMongoDBBundle/index.html
MIT License
377 stars 231 forks source link

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

Closed vencakrecl closed 6 months ago

vencakrecl commented 6 months ago
// 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 6 months ago
// current version
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm'));

// fix
DoctrineODMCommand::setApplicationDocumentManager($this->getApplication(), $input->getOption('dm', 'default'));
GromNaN commented 6 months ago

Thanks for the feedback. It should be fixed by https://github.com/doctrine/DoctrineMongoDBBundle/pull/837

vencakrecl commented 6 months ago

@GromNaN Thank you.