Doctrine2 get default database

Doctrine2 Symfony2

Simple use:

$this->getContainer()->get('doctrine.odm.mongodb.document_manager')->getConfiguration()->getDefaultDB();

Comments

Login with GitHub to leave a comments