Cakephp: Print a comment after queries in Sql log -


I am using KPHHP 2.3 with the debug kit plugin and print a comment after each SQL query in each log need to. Is it possible to modify it?

To solve the problem, I have the model in Mysql / Data source called DboCustomSource . To modify the variable $ sql here I overwrite the implemented to DboSource .

  Uses App :: ('Mysql', 'Model / Datastra / Database'); Class DboCustomSource Mysql {executes public function ($ sql, $ options = array (), $ params = array ()) {$ sql = 'Comment'; Return Parent :: Execution ($ sql, $ option, $ params); }}  

The database configuration needs to be modified by data source : 'dataource' = & gt; 'DboCustomSource' .


Comments