Is there a hook in Doctrine \ Symfony to manually edit queries that are built by Do开发者_如何学Cctrine before they are sent to the database?
No there isn't... You're not supposed to do that in my opinion. Maybe using DQL will help you to do what you want.
Try DQL hooks and/or record listeners. DQL hooks are probably what you want. Make sure you turn on callbacks!
精彩评论