Doctrine is not sending a “real SQL query” to the database server : it is actually using prepared statements, which means :
- Sending the statement, for it to be prepared (this is what is returned by
- And, then, sending the parameters (returned by
- and executing the prepared statements
This means there is never a “real” SQL query on the PHP side — so, Doctrine cannot display it.