From 666f9c872af085122ef0e5e3fbadfa85fd1880dc Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Mon, 22 Nov 2010 15:31:15 +0000 Subject: [PATCH] fixed batchSize doc git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305656 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocursor/batchsize.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/mongo/mongocursor/batchsize.xml b/reference/mongo/mongocursor/batchsize.xml index 259d305f46..ac8755cba4 100644 --- a/reference/mongo/mongocursor/batchsize.xml +++ b/reference/mongo/mongocursor/batchsize.xml @@ -3,7 +3,7 @@ - MongoCursor::limit + MongoCursor::batchSize Sets the number of results returned per result set @@ -30,19 +30,19 @@ limit(-20)->batch(10); +$cursor->limit(-20)->batchSize(10); // one batch, at most 10 items -$cursor->limit(20)->batch(-10); +$cursor->limit(20)->batchSize(-10); // first batch: at most 10 items $cursor->limit(10); // first batch: at most 10 items -$cursor->limit(10)->batch(20); +$cursor->limit(10)->batchSize(20); // first batch: at most 10 items -$cursor->limit(20)->batch(10); +$cursor->limit(20)->batchSize(10); $cursor->limit(30)->batchSize(7)