gâteau php 2.x SQL Dump
$log = $this->User->getDataSource()->getLog(false, false);
debug($log);
Wide-eyed Wombat
$log = $this->User->getDataSource()->getLog(false, false);
debug($log);
$db =& ConnectionManager::getDataSource('default');
$db->showLog();
debug($this->User->lastQuery());