/** * @param \PDOException * @return array */ public function renderException($e) { if ($e instanceof \PDOException && count($this->queries)) { $s = '<table><tr><th>Time ms</th><th>SQL</th><th>Params</th></tr>'; $s .= $this->processQuery(end($this->queries)); $s .= '</table>'; return array('tab' => 'SQL', 'panel' => $this->renderStyles() . '<div class="nette-inner nette-Doctrine2Panel">' . $s . '</div>'); } else { ConnectionPanel::renderException($e); } }