/** * @param Participant $participant * @return void */ protected function isValid($participant) { if ($this->participantRepository->findOneByAccount($this->securityContext->getAccount())) { $this->addError('There is already a registration for this account', 1422907478); } }