/**
  * @Route("/tocontact/contacted/{id}", name="tocontact_contacted")
  * @Secure(roles="ROLE_USER")
  */
 public function contactedAction(Intervention $entity)
 {
     $em = $this->getDoctrine()->getManager();
     $entity->setContactCustomer(true);
     $em->persist($entity);
     $em->flush();
     return $this->redirect($this->generateUrl('tocontact'));
 }
 /**
  * Supprime une demande de devis
  * @Secure(roles="ROLE_USER")
  */
 public function cancelcontactAction(Intervention $entity)
 {
     $entity->setContactCustomer(null);
     $em = $this->getDoctrine()->getManager();
     $em->persist($entity);
     $em->flush();
     return $this->redirect($this->generateUrl('intervention_redirect', array('id' => $entity->getId(), 'act' => 'show')));
 }