开发者

Doctrine 2: Display current settings

开发者 https://www.devze.com 2023-03-16 12:36 出处:网络
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

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());
0

精彩评论

暂无评论...
验证码 换一张
取 消