Created
July 25, 2014 14:27
-
-
Save maccevedor/009221fbc368639513cb to your computer and use it in GitHub Desktop.
Consulta Symfony Doctrine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$em = $this->getDoctrine()->getEntityManager(); | |
$dql = "select a from MDWDemoBundle:Articles a"; | |
$query = $em->createQuery($dql); | |
$articulos = $query->getResult(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment