public function doRegister($data, WaitingListRegistrationForm $form)
    {
        $form->saveInto($registration = WaitingListRegistration::create());
        $registration->EventID = $this->getController()->ID;
        $this->getController()->WaitingList()->add($registration);
        $this->getController()->redirect($this->getController()->Link('?waitinglist=1'));
    }
public function doRegister($data, WaitingListRegistrationForm $form)
    {
        $form->saveInto($registration = WaitingListRegistration::create());
        $registration->EventID = $this->getController()->ID;
        $this->getController()->WaitingList()->add($registration);
        $this->getController()->redirect($this->getController()->Link('?waitinglist=1'));
    }
public function doRegister ( $ data , WaitingListRegistrationForm $ form ) { $ form -> saveInto ( $ registration = WaitingListRegistration :: create ( ) ) ; $ registration -> EventID = $ this -> getController ( ) -> ID ; $ this -> getController ( ) -> WaitingList ( ) -> add ( $ registration ) ; $ this -> getController ( ) -> redirect ( $ this -> getController ( ) -> Link ( '?waitinglist=1' ) ) ; }
Sets the person on the waiting list

@param                             $data
@param WaitingListRegistrationForm $form
Sets the person on the waiting list