1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Improved grammar/ punctuation in pagination tutorial, and brought parameter name in code example into line with actual parameter

This commit is contained in:
Douglas Greenshields 2012-05-30 15:59:58 +02:00
parent 8b4e08d694
commit 671177e162

View File

@ -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.