public function rejectRegistration(Registration $registration)
    {
        $registration->setPending(false);
        $registration->setRejected(true);
        $this->em->persist($registration);
        $this->em->flush();
    }
public function rejectRegistration(Registration $registration)
    {
        $registration->setPending(false);
        $registration->setRejected(true);
        $this->em->persist($registration);
        $this->em->flush();
    }
public function rejectRegistration ( Registration $ registration ) { $ registration -> setPending ( false ) ; $ registration -> setRejected ( true ) ; $ this -> em -> persist ( $ registration ) ; $ this -> em -> flush ( ) ; }
Rejects a registration.

@param Registration $registration
Rejects a registration .