Is there a way that one can cause CakePHP to dump its SQL log on demand? I\'d like to execute code up until a point in my controller and see what SQL has been run.
In CakePHP 1.2 ..
$db =& ConnectionManager::getDataSource('default'); $db->showLog();