public function saveIndex($index) { $this->db->update("documents", ["index" => $index], $this->db->quoteInto("id = ?", $this->model->getId())); }