/**
  * {@inheritdoc}
  */
 public function getCodeByCode($codeString)
 {
     if (!($code = $this->repository->findOneByCode($codeId))) {
         throw new CodeNotFoundException('code', $codeId);
     }
     return $code;
 }