Skip to content

Commit 2a7cbb6

Browse files
committed
Fix documentation for getInsertedId(s) methods on insert results
Per PHPLIB-93, these classes should always have an ID, regardless of whether the driver needed to generate one.
1 parent daed771 commit 2a7cbb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/InsertManyResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getInsertedCount()
3838
}
3939

4040
/**
41-
* Return the map of inserted IDs that were generated by the driver.
41+
* Return a map of the inserted documents' IDs.
4242
*
4343
* The index of each ID in the map corresponds to the document's position
4444
* in bulk operation. If the document already an ID prior to insertion (i.e.

src/InsertOneResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getInsertedCount()
3838
}
3939

4040
/**
41-
* Return the inserted ID that was generated by the driver.
41+
* Return the inserted document's ID.
4242
*
4343
* If the document already an ID prior to insertion (i.e. the driver did not
4444
* need to generate an ID), this will contain its "_id". Any

0 commit comments

Comments
 (0)