Example #1
0
 /**
  * Apply mode update on the repository
  *
  * @return  bool
  */
 protected function onUpdateSuccess()
 {
     try {
         $this->repository->update($this->repository->getBaseTable(), $this->getValues(), $this->createFilter());
     } catch (Exception $e) {
         Notification::error($this->getUpdateMessage(false));
         $this->error($e->getMessage());
         return false;
     }
     Notification::success($this->getUpdateMessage(true));
     return true;
 }