/**
  * @Route("/remove_access/{fundraiser}", name="fundraiser_remove_access",options={"expose"=true})
  * @param Fundraiser $fundraiser
  * @ParamConverter("fundraiser", class="AppBundle:Fundraiser")
  * @return Response
  */
 public function removeAccessAction(Request $request, Fundraiser $fundraiser)
 {
     $fundraiser->removeAccess();
     $this->get('fos_user.user_manager')->updateUser($fundraiser);
     return $this->redirect($this->generateUrl('fundraiser_list'));
 }
Esempio n. 2
0
 public function isInCart(Fundraiser $fundraiser)
 {
     return $this->fundraisers->contains($fundraiser);
 }