Hello i have a problem i would like to retrieve data from my entity in Symfony here is the code:
public function indexAction(Request $request , $id)
{
$getDoctrine = $this->getDoctrine()->getManager();
$email = $getDoctrine->getRepository('desplayBundle:people')->find($id);
dump($email);
return $this->render('emailBundle:Default:index.html.twig', array());
}
I would like to retrieve the data inside my controller and not in twig.