I would like to get the exact SQL INSERT query that Doctrine generates when an object\'s save() method is called.
Preferably, I would like to get it in the postSave() ev
Why don't you try to see how the symfony developers do it? Check their WebDebug Toolbar for Doctrine here. The WebDebug Toolbar outputs all query that you do on a page.
There's a hook on DoctrineEvent
, and I think you can modify the code to do what you want. Check the getDoctrineEvents
and getSqlLogs
method.
Hope this helps. If you need further explanation, please write it in comment, I'll try my best to explain.