How can i get count of queries to database in Doctrine2? I need this just for statistic and to find out more how doctrine work, how much queries generated in different situations. But anyway, how to do this?
标签:
doctrine-orm
相关问题
- Lifecycle Callback Issue When Extending FOSUserBun
- Doctrine 2.5: Unrecognized field (but only in Symf
- Doctrine return null in place of EntityNotFoundExc
- two many2many self-referencing collection
- Doctrine inheritance for entities common fields
相关文章
- Symfony : Doctrine data fixture : how to handle la
- Is there a way to modify the entity mapping config
- Get random records with Doctrine
- Doctrine not finding data on Google App Engine?
- Doctrine 2: Cannot select entity through identific
- Symfony does not remove entity from collection
- Symfony doctrine:schema:update not working
- Storing Doctrine2 DateTime in UTC Only
Just to add to accepted answer.
To do this from the context of Symfony 2.x controller:
Thanks to this post: http://vvv.tobiassjosten.net/symfony/logging-doctrine-queries-in-symfony2/