Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $em = $this->getDoctrine()->getManager(); // ...or getEntityManager() prior to Symfony 2.1
- $connection = $em->getConnection();
- $statement = $connection->prepare("SELECT something FROM somethingelse WHERE id = :id");
- $statement->bindValue('id', 123);
- $statement->execute();
- $results = $statement->fetchAll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement