public function activerAction(OffreEmploi $offre) { $em = $this->getDoctrine()->getManager(); $offre->setActif('A'); $em->persist($offre); $em->flush(); /* return $this->redirect($this->generateUrl('amie_offresemplois_offres', array( 'actif' => 'inactif' ))); */ $referer = $this->getRequest()->headers->get('referer'); return $this->redirect($referer); }
public function activeroffreAction(OffreEmploi $offre) { $em = $this->getDoctrine()->getManager(); $layout = $this->getLayout($em); $offre->setActif('A'); $em->persist($offre); $em->flush(); return $this->redirect($this->generateUrl('amie_user_gestion')); }