I'm getting datas from MySQL database but not display in rendered TWIG file. in TWIG file, I execute Twig's dump() function It works, all datas displayed but TWIG is empty.
$em = $this->getDoctrine()->getEntityManager();
$yorumlar = $em->getRepository('SiteSiteBundle:Yorum')->find($id);
if (!$yorumlar) {
throw $this->createNotFoundException($id . ' nolu Yorum bulunamadı!');
}
return $this->render('SiteSiteBundle:Default:liste.html.twig', array(
'yorumlar' => $yorumlar
));