开发者

Doctrine on query built hook

开发者 https://www.devze.com 2023-01-24 08:48 出处:网络
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 o

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消