mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
2260593b82
commit
452d71c53c
2 changed files with 9 additions and 1 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue