public function exec($query) { if ($this->debug_mode) { echo $query; $this->debug_mode = false; return false; } array_push($this->logs, $query); return $this->pdo->exec($query); }
public function exec($query) { array_push($this->logs, $query); Log::sql($this->last_query()); array_push($this->queries, $this->last_query()); return parent::exec($query); }