public function delete($table) { return $this->command()->delete()->from('%n', $table); }
/** * @param $id */ public function delete($id) { try { $this->db->delete($this->tableName)->where($this->primaryKey . ' = %i', $id)->execute(); } catch (Exception $e) { Debugger::log($e->getMessage(), ILogger::ERROR); } }