public function undelete(CuratedListModel $curatedList, UserAccountModel $creator) { global $DB; try { $DB->beginTransaction(); $curatedList->setIsDeleted(false); $this->curatedListDBAccess->update($curatedList, array('is_deleted'), $creator); $DB->commit(); } catch (Exception $e) { $DB->rollBack(); } }