[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/mongodb/mongodb/driver/bulkwrite/_insert.xml?=
From:       Jeremy_Mikola <jmikola () php ! net>
Date:       2017-07-31 18:44:50
Message-ID: svn-jmikola-1501526690-342739-1294451618 () svn ! php ! net
[Download RAW message or body]

jmikola                                  Mon, 31 Jul 2017 18:44:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=342739

Log:
MongoDB\Driver\BulkWrite::insert() always returns the document ID

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

Changed paths:
    U   phpdoc/en/trunk/reference/mongodb/mongodb/driver/bulkwrite/insert.xml

Modified: phpdoc/en/trunk/reference/mongodb/mongodb/driver/bulkwrite/insert.xml
===================================================================
--- phpdoc/en/trunk/reference/mongodb/mongodb/driver/bulkwrite/insert.xml	2017-07-31 \
                18:35:10 UTC (rev 342738)
+++ phpdoc/en/trunk/reference/mongodb/mongodb/driver/bulkwrite/insert.xml	2017-07-31 \
18:44:50 UTC (rev 342739) @@ -37,9 +37,10 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   If the <parameter>document</parameter> did not have an
-   <literal>_id</literal>, a <classname>MongoDB\BSON\ObjectID</classname> will
-   be generated and returned; otherwise, no value is returned.
+   Returns the <literal>_id</literal> of the inserted document. If the
+   <parameter>document</parameter> did not have an <literal>_id</literal>, the
+   <classname>MongoDB\BSON\ObjectID</classname> generated for the insert will
+   be returned.
   </para>
  </refsect1>

@@ -50,6 +51,31 @@
   </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.3.0</entry>
+       <entry>
+        The <literal>_id</literal> of the inserted document is always returned.
+        Previously, the method only returned a value if a
+        <classname>MongoDB\BSON\ObjectID</classname> was generated.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>

  <refsect1 role="examples">
   &reftitle.examples;



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic