Created
September 1, 2014 04:23
-
-
Save jmolivas/90b406b459b76a5e374e to your computer and use it in GitHub Desktop.
ORM won't kill any kittens
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
public function indexAction(){ | |
$entityManager = $this->getDoctrine()->getManager(); | |
$articles = $entityManager->getRepository('ORMDemoBundle:Article')->findAll(); | |
return $this->render( | |
'ORMDemoBundle:Article:index.html.twig', | |
['articles' => $articles] | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment