Im trying to debug several SQL statments, and thinking a way around is to override the 'bindValue' method so I can log what is being bound to the query. So what I currently do is:-
So, what I want to do is override the return of prepare to $rwRowImport, and then override the bindValue so I can add in a logging method, then I can call the parent bindValue to do the actual bindValue.
My issue is, I have no idea how i can capture what is returned and then override it. Any ideas?
Open in new window
thank you