Skip to content

Commit 7fc1164

Browse files
derickrjmikola
authored andcommitted
Fixed documentation to point to the right BSON namespace for ObjectID
1 parent d9aee1d commit 7fc1164

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/BulkWriteResult.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ public function getInsertedCount()
6969
* The index of each ID in the map corresponds to the document's position in
7070
* the bulk operation. If the document had an ID prior to insertion (i.e.
7171
* the driver did not generate an ID), this will contain its "_id" field
72-
* value. Any driver-generated ID will be an MongoDB\Driver\ObjectID
73-
* instance.
72+
* value. Any driver-generated ID will be an MongoDB\BSON\ObjectID instance.
7473
*
7574
* @return mixed[]
7675
*/
@@ -142,7 +141,7 @@ public function getUpsertedCount()
142141
* The index of each ID in the map corresponds to the document's position
143142
* in bulk operation. If the document had an ID prior to upserting (i.e. the
144143
* server did not need to generate an ID), this will contain its "_id". Any
145-
* server-generated ID will be an MongoDB\Driver\ObjectID instance.
144+
* server-generated ID will be an MongoDB\BSON\ObjectID instance.
146145
*
147146
* This method should only be called if the write was acknowledged.
148147
*

src/InsertManyResult.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public function getInsertedCount()
5151
* The index of each ID in the map corresponds to the document's position in
5252
* the bulk operation. If the document had an ID prior to insertion (i.e.
5353
* the driver did not generate an ID), this will contain its "_id" field
54-
* value. Any driver-generated ID will be an MongoDB\Driver\ObjectID
55-
* instance.
54+
* value. Any driver-generated ID will be an MongoDB\BSON\ObjectID instance.
5655
*
5756
* @return mixed[]
5857
*/

src/InsertOneResult.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getInsertedCount()
5050
*
5151
* If the document already an ID prior to insertion (i.e. the driver did not
5252
* need to generate an ID), this will contain its "_id". Any
53-
* driver-generated ID will be an MongoDB\Driver\ObjectID instance.
53+
* driver-generated ID will be an MongoDB\BSON\ObjectID instance.
5454
*
5555
* @return mixed
5656
*/

0 commit comments

Comments
 (0)