/** * @Secured(resource="setSeasonCurrent") */ public function handleSetSeasonCurrent($id) { if (!is_numeric($id)) { $this->handleBadArgument($id); } try { $this->seasonService->setSeasonCurrent($id); } catch (Exceptions\DataErrorException $ex) { $this->handleDataSave($id, "this", $ex); } $this->redirect("this"); }