Symfony减少了一个动作

I'm coming to you for help, please, I do not know how to do it.

Basically for each case who are respect : if 'amout' 'training' et ''objectif' are > or = a 100 in this case I have to decrement the number of 'remaining seats'.

acutelement mon code ressemble a cela :

$user = $this->getUser();
$em = $this->getDoctrine()->getManager();
$company = $this->getDoctrine()->getRepository('AppBundle:Company')->find($user->getCompany());
$league = $this->getDoctrine()->getRepository('AppBundle:League')->find($user->getCompany()->getLeague());
$remainingSeats = $league->getRemainingSeats() ;

if (!$user->isAcceptTC() && !$this->isGranted('ROLE_ADMIN')) {
    return $this->redirectToRoute('terms');
}

if ($company->getAmout() >= 100
    && $company->getTraining() >= 100
    && $company->getAmountXObjective() >= 100) {
    while ($remainingSeats >= 0) {
        --$remainingSeats;
        break;
    }

    $league->setRemainingSeats($remainingSeats);
    $em->persist($league);
    $em->flush();
}

I know that my code is not good or not logical, basically on my code every time I update it decreases while I am sorry that it decreases only once.

Thanks for your help ;)