private function sportGroupTypeHandle(StaticPage $sp) { try { $group = null; $id = $this->getMixId($sp->getGroup()); if ($id !== null) { $group = $this->sportGroupDao->find($id); } $sp->setGroup($group); return $sp; } catch (\Exception $ex) { $this->logError($ex->getMessage()); throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious()); } }