From 31a0b07c829e5be2d8a115d50f7e639337ab6c5c Mon Sep 17 00:00:00 2001 From: Andrew M Date: Sat, 8 Feb 2014 10:55:25 +0200 Subject: [PATCH] Fix PSR error --- book/doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 026a3b4f977..71f8916ad2c 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -1253,8 +1253,8 @@ following method to the ``ProductRepository`` class:: public function findOneByIdJoinedToCategory($id) { $query = $this->getEntityManager() - ->createQuery(' - SELECT p, c FROM AcmeStoreBundle:Product p + ->createQuery( + 'SELECT p, c FROM AcmeStoreBundle:Product p JOIN p.category c WHERE p.id = :id' )->setParameter('id', $id);