Get latest SQL query
When debugging CakePHP code, it’s very useful to know which SQL query is executed latest. Use next few lines to get this information $log = $this->Model->getDataSource()->getLog(false, false); debug($log);
When debugging CakePHP code, it’s very useful to know which SQL query is executed latest. Use next few lines to get this information $log = $this->Model->getDataSource()->getLog(false, false); debug($log);