Doctrine 2: Display current settings
How to display curre开发者_如何学Gont configuration in Doctrine 2. I found the answer for Doctrine 1 here: Find current Doctrine database connection settings in symfony, but nothing for Doctrine 2.
You have all you need in Doctrine\DBAL\Connection instance:
var_dump($entityManager->getConnection());
精彩评论