Document read preference inheritance for MongoCommandCursor

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335763 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jeremy Mikola 2015-01-15 21:55:38 +00:00
parent 2260593b82
commit 452d71c53c
2 changed files with 9 additions and 1 deletions

View file

@ -22,6 +22,14 @@
just like the <classname>MongoCursor</classname> objects that are returned
by the <methodname>MongoCollection::find</methodname> method.
</para>
<note>
<simpara>
The resulting <classname>MongoCommandCursor</classname> will inherit this
collection's read preference.
<methodname>MongoCommandCursor::setReadPreference</methodname> may be used
to change the read preference before iterating on the cursor.
</simpara>
</note>
</refsect1>
<refsect1 role="parameters">

View file

@ -22,7 +22,7 @@
<member>Specifically by calling <methodname>MongoClient::setReadPreference</methodname></member>
<member>At the database level with <methodname>MongoDB::setReadPreference</methodname></member>
<member>At the collection level with <methodname>MongoCollection::setReadPreference</methodname></member>
<member>At the cursor level with <methodname>MongoCursor::setReadPreference</methodname></member>
<member>At the cursor level with <methodname>MongoCursor::setReadPreference</methodname> or <methodname>MongoCommandCursor::setReadPreference</methodname></member>
</simplelist>
Each class inherits its read preference setting from the "parent" context.
</para>