Doctrine is not sending a "real SQL query" to the database server : it is actually using prepared statements, which means :
$query->getSql()
)$query->getParameters()
)This means there is never a "real" SQL query on the PHP side — so, Doctrine cannot display it.