Ejemplo n.º 1
0
 public function createSportType(ArrayHash $values)
 {
     $type = new SportType();
     $type->fromArray((array) $values);
     try {
         $this->sportTypeService->createSportType($type);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleException($ex);
     }
     $this->redirect("default");
 }