From 452d71c53cb8f32e6a4df407aeab9dfbeeaa5fcf Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 15 Jan 2015 21:55:38 +0000 Subject: [PATCH] Document read preference inheritance for MongoCommandCursor git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335763 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocollection/aggregatecursor.xml | 8 ++++++++ reference/mongo/queries.xml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongocollection/aggregatecursor.xml b/reference/mongo/mongocollection/aggregatecursor.xml index 7e1052e6e2..4ff2f5aba4 100644 --- a/reference/mongo/mongocollection/aggregatecursor.xml +++ b/reference/mongo/mongocollection/aggregatecursor.xml @@ -22,6 +22,14 @@ just like the MongoCursor objects that are returned by the MongoCollection::find method. + + + The resulting MongoCommandCursor will inherit this + collection's read preference. + MongoCommandCursor::setReadPreference may be used + to change the read preference before iterating on the cursor. + + diff --git a/reference/mongo/queries.xml b/reference/mongo/queries.xml index 32ced31d78..b33c7c2556 100644 --- a/reference/mongo/queries.xml +++ b/reference/mongo/queries.xml @@ -22,7 +22,7 @@ Specifically by calling MongoClient::setReadPreference At the database level with MongoDB::setReadPreference At the collection level with MongoCollection::setReadPreference - At the cursor level with MongoCursor::setReadPreference + At the cursor level with MongoCursor::setReadPreference or MongoCommandCursor::setReadPreference Each class inherits its read preference setting from the "parent" context.