Beispiel #1
0
 public function loadState(array $params)
 {
     if (isset($params['registration'])) {
         $this->registration = $this->registrationRepository->findOneBy(array('id' => $params['registration'], 'enabled' => true));
         if ($this->registration === null) {
             $this->error();
         }
         if (isset($params['hash'])) {
             $this->invitation = $this->invitationRepository->findOneBy(array('hash' => $params['hash'], 'registration' => $params['registration']));
             if ($this->invitation === null) {
                 $this->error();
             }
         }
     }
     parent::loadState($params);
 }