Esempio n. 1
0
 public function updateSportType(ArrayHash $values)
 {
     $type = new SportType();
     $type->fromArray((array) $values);
     try {
         $this->sportTypeService->updateSportType($type);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataSave($values->id, "this", $ex);
     }
     $this->redirect("default");
 }