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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -