Doctrine2 get default database

Simple use:

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

Comments