1

Is it possible to use the EXPLAIN sql command with Doctrine? If not, how do I test/optimize sql code using Doctrine?

whamsicore
  • 8,320
  • 9
  • 40
  • 50

1 Answers1

0

You didn't said which version you are using so I can't answer specifically but here are some links:

Doctrine - How to print out the real sql, not just the prepared statement?

Doctrine - how to get the SQL INSERT query, in the postSave() event?

How to debug MySQL/Doctrine2 Queries?

http://www.chrisshennan.com/2009/12/07/raw-sql-from-doctrine-query-object-revised/#.T7ARLOs6E0E

(Your answer is in one of the above links, if not, please comment)

Community
  • 1
  • 1
User
  • 373
  • 2
  • 8