MongoDB\Driver\BulkWrite::count() return value changes in 1.2.0

https://jira.mongodb.org/browse/PHPC-680


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339104 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jeremy Mikola 2016-04-27 19:34:44 +00:00
parent bb3e737c4d
commit 4e9be3169f

View file

@ -4,7 +4,7 @@
<refentry xml:id="mongodb-driver-bulkwrite.count" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>MongoDB\Driver\BulkWrite::count</refname>
<refpurpose>Count expected roundtrips for executing the bulk</refpurpose>
<refpurpose>Count number of write operations in the bulk</refpurpose>
</refnamediv>
<refsect1 role="description">
@ -14,9 +14,8 @@
<void />
</methodsynopsis>
<para>
Returns the expected number of client-to-server roundtrips required to
execute all write operations in the
<classname>MongoDB\Driver\BulkWrite</classname>.
Returns the number of write operations added to the
<classname>MongoDB\Driver\BulkWrite</classname> object.
</para>
</refsect1>
@ -29,8 +28,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns number of expected roundtrips to execute the
<classname>MongoDB\Driver\BulkWrite</classname>.
Returns number of write operations added to the
<classname>MongoDB\Driver\BulkWrite</classname> object.
</para>
</refsect1>
@ -41,6 +40,32 @@
</simplelist>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>1.2.0</entry>
<entry>
Returns the number of write operations added to the
<classname>MongoDB\Driver\BulkWrite</classname> object. Earlier versions
returned the expected number of client-to-server roundtrips required to
execute all write operations.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
@ -64,7 +89,7 @@ var_dump(count($bulk));
&example.outputs;
<screen>
<![CDATA[
int(3)
int(4)
]]>
</screen>
</example>