From 671177e1629ef2779b7199f848ca54a3556a76a4 Mon Sep 17 00:00:00 2001 From: Douglas Greenshields Date: Wed, 30 May 2012 15:59:58 +0200 Subject: [PATCH] Improved grammar/ punctuation in pagination tutorial, and brought parameter name in code example into line with actual parameter --- en/tutorials/pagination.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/tutorials/pagination.rst b/en/tutorials/pagination.rst index 63e50e6c5..dc789540a 100644 --- a/en/tutorials/pagination.rst +++ b/en/tutorials/pagination.rst @@ -15,7 +15,7 @@ has a very simple API and implements the SPL interfaces ``Countable`` and ->setFirstResult(0) ->setMaxResults(100); - $paginator = new Paginator($query, $fetchJoin = true); + $paginator = new Paginator($query, $fetchJoinCollection = true); $c = count($paginator); foreach ($paginator as $post) { @@ -36,6 +36,6 @@ correct result: This behavior is only necessary if you actually fetch join a to-many collection. You can disable this behavior by setting the -``$fetchJoinCollection`` flag of, in that case only 2 instead of the 3 queries +``$fetchJoinCollection`` flag to ``false``; in that case only 2 instead of the 3 queries described are executed. We hope to automate the detection for this in the future.