Skip to content

Commit 1714a31

Browse files
committed
minor #3585 Use consistent method chaining in BlogBundle sample application (ockcyp)
This PR was merged into the 2.3 branch. Discussion ---------- Use consistent method chaining in BlogBundle sample application - Moved semicolon to end of last chained method - Moved getManager() to next line to avoid having multiple chained methods in the same line Commits ------- 3670cbb Use consistent method chaining in BlogBundle sample application - Moved semicolon to end of last chained method - Moved getManager() to next line to avoid having multiple chained methods in the same line
2 parents cb61f4f + 3670cbb commit 1714a31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,8 @@ them for you. Here's the same sample application, now built in Symfony2::
550550
{
551551
public function listAction()
552552
{
553-
$posts = $this->get('doctrine')->getManager()
553+
$posts = $this->get('doctrine')
554+
->getManager()
554555
->createQuery('SELECT p FROM AcmeBlogBundle:Post p')
555556
->execute();
556557

@@ -565,8 +566,7 @@ them for you. Here's the same sample application, now built in Symfony2::
565566
$post = $this->get('doctrine')
566567
->getManager()
567568
->getRepository('AcmeBlogBundle:Post')
568-
->find($id)
569-
;
569+
->find($id);
570570

571571
if (!$post) {
572572
// cause the 404 page not found to be displayed

0 commit comments

Comments
 (0)