Doctrine
How To Debug
Sometimes we need a fast way to see all the queries that Doctrine is doing under the hood, if we add an echo logger we can easily do it.
$this->entityManager()
->getConnection()
->getConfiguration()
->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());