someone know how i log all doctrine queries to log file automatically?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-05-10T03:58:54Z Indexed on 2010/05/10 4:08 UTC
Read the original article Hit count: 218

Filed under:

im using Doctrine and want to log all generated sql queries.

i know that i could use $q->getSqlQuery() but i dont want to do that manually each time.

is there a way to do it automatically?

thanks

© Stack Overflow or respective owner

Related posts about doctrine