maccevedor
7/25/2014 - 2:27 PM

Consulta Symfony Doctrine

Consulta Symfony Doctrine

$em = $this->getDoctrine()->getEntityManager();
$dql = "select a from MDWDemoBundle:Articles a";
$query = $em->createQuery($dql);
$articulos = $query->getResult();