/**
  * @Route("/close/{id}")
  * @Template()
  */
 public function closeAction(\Club\ExchangeBundle\Entity\Exchange $exchange)
 {
     $em = $this->getDoctrine()->getManager();
     $exchange->setClosed(true);
     $em->persist($exchange);
     $em->flush();
     return $this->redirect($this->generateUrl('club_exchange_exchange_index'));
 }
 /**
  * @Route("/delete/{id}")
  * @Template()
  */
 public function deleteAction(\Club\ExchangeBundle\Entity\Exchange $exchange)
 {
     $em = $this->getDoctrine()->getManager();
     $exchange->setClosed(true);
     $em->persist($exchange);
     $em->flush();
     $this->get('session')->getFlashBag()->add('notice', $this->get('translator')->trans('Your changes are saved.'));
     return $this->redirect($this->generateUrl('club_exchange_exchange_index'));
 }