Doctrine 2 - getSQL from $em->find()
doctrine, doctrine-orm, php
Solution
Your question is unclear.
- If you mean "is it possible to find objects with raw SQL", then check the Native SQL section in the Doctrine 2 documentation;
- If you mean "is it possible to see the SQL generated by a Doctrine query", then configure a SQL logger, as outlined in this answer.
Problem
Could someone tell me, how to take pure SQL from `$em->find()` method?