/** * @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); } }
/** * @param int $id * @return Dibi\Result|int */ public function delete($id) { return $this->database->delete($this->table)->where('id = %i', $id)->execute(); }