Skip to content

Commit ccebb5b

Browse files
committed
Misc doc block updates for Collection operations
1 parent c63fc53 commit ccebb5b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public function getDatabaseName()
580580
/**
581581
* Return the collection namespace.
582582
*
583-
* @see http://docs.mongodb.org/manual/faq/developers/#faq-dev-namespace
583+
* @see https://docs.mongodb.org/manual/reference/glossary/#term-namespace
584584
* @return string
585585
*/
586586
public function getNamespace()
@@ -691,7 +691,7 @@ public function updateMany($filter, $update, array $options = [])
691691
/**
692692
* Updates at most one document matching the filter.
693693
*
694-
* @see ReplaceOne::__construct() for supported options
694+
* @see UpdateOne::__construct() for supported options
695695
* @see http://docs.mongodb.org/manual/reference/command/update/
696696
* @param array|object $filter Query by which to filter documents
697697
* @param array|object $update Update to apply to the matched document

src/Operation/BulkWrite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class BulkWrite implements Executable
3636
* Example array structure for all supported operation types:
3737
*
3838
* [
39-
* [ 'deleteOne' => [ $filter ] ],
4039
* [ 'deleteMany' => [ $filter ] ],
40+
* [ 'deleteOne' => [ $filter ] ],
4141
* [ 'insertOne' => [ $document ] ],
4242
* [ 'replaceOne' => [ $filter, $replacement, $options ] ],
4343
* [ 'updateMany' => [ $filter, $update, $options ] ],
@@ -46,7 +46,7 @@ class BulkWrite implements Executable
4646
*
4747
* Arguments correspond to the respective Operation classes; however, the
4848
* writeConcern option is specified for the top-level bulk write operation
49-
* instead of each individual operations.
49+
* instead of each individual operation.
5050
*
5151
* Supported options for replaceOne, updateMany, and updateOne operations:
5252
*

src/Operation/Find.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace MongoDB\Operation;
44

5+
use MongoDB\Driver\Cursor;
56
use MongoDB\Driver\Query;
67
use MongoDB\Driver\ReadConcern;
78
use MongoDB\Driver\ReadPreference;

0 commit comments

Comments
 (0)