php - Capturing Pre-execute Event in Symfony/Doctrine DBAL -
i looking way interject , modify/wrap queries before sent doctrine/symfony postgres. i've been looking around @ symfony's , doctrine's standard events (here , here found), there doesn't seem generic "before execute query" event.
is lost cause/even possible?
thanks
have tried use wrapper class wrapper_class parameter when configuring connections ?
see here more info doctrine dbal's configuration
basically, permits implement custom connection class. create custom connection class inheriting original 1 (\doctrine\dbal\connection) , override executequery() method. there, use own event management implementation throw event or use built-in eventmanager.
Comments
Post a Comment