getModel()::getDB()->where('guarantee_id',$id)->update(['status' => $status]); } public function clear($id) { $this->getModel()::getDB()->where('guarantee_template_id',$id)->delete(); } }