Commit ccebb5be authored by Jeremy Mikola's avatar Jeremy Mikola

Misc doc block updates for Collection operations

parent c63fc539
...@@ -580,7 +580,7 @@ class Collection ...@@ -580,7 +580,7 @@ class Collection
/** /**
* Return the collection namespace. * Return the collection namespace.
* *
* @see http://docs.mongodb.org/manual/faq/developers/#faq-dev-namespace * @see https://docs.mongodb.org/manual/reference/glossary/#term-namespace
* @return string * @return string
*/ */
public function getNamespace() public function getNamespace()
...@@ -691,7 +691,7 @@ class Collection ...@@ -691,7 +691,7 @@ class Collection
/** /**
* Updates at most one document matching the filter. * Updates at most one document matching the filter.
* *
* @see ReplaceOne::__construct() for supported options * @see UpdateOne::__construct() for supported options
* @see http://docs.mongodb.org/manual/reference/command/update/ * @see http://docs.mongodb.org/manual/reference/command/update/
* @param array|object $filter Query by which to filter documents * @param array|object $filter Query by which to filter documents
* @param array|object $update Update to apply to the matched document * @param array|object $update Update to apply to the matched document
......
...@@ -36,8 +36,8 @@ class BulkWrite implements Executable ...@@ -36,8 +36,8 @@ class BulkWrite implements Executable
* Example array structure for all supported operation types: * Example array structure for all supported operation types:
* *
* [ * [
* [ 'deleteOne' => [ $filter ] ],
* [ 'deleteMany' => [ $filter ] ], * [ 'deleteMany' => [ $filter ] ],
* [ 'deleteOne' => [ $filter ] ],
* [ 'insertOne' => [ $document ] ], * [ 'insertOne' => [ $document ] ],
* [ 'replaceOne' => [ $filter, $replacement, $options ] ], * [ 'replaceOne' => [ $filter, $replacement, $options ] ],
* [ 'updateMany' => [ $filter, $update, $options ] ], * [ 'updateMany' => [ $filter, $update, $options ] ],
...@@ -46,7 +46,7 @@ class BulkWrite implements Executable ...@@ -46,7 +46,7 @@ class BulkWrite implements Executable
* *
* Arguments correspond to the respective Operation classes; however, the * Arguments correspond to the respective Operation classes; however, the
* writeConcern option is specified for the top-level bulk write operation * writeConcern option is specified for the top-level bulk write operation
* instead of each individual operations. * instead of each individual operation.
* *
* Supported options for replaceOne, updateMany, and updateOne operations: * Supported options for replaceOne, updateMany, and updateOne operations:
* *
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace MongoDB\Operation; namespace MongoDB\Operation;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\Query; use MongoDB\Driver\Query;
use MongoDB\Driver\ReadConcern; use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference; use MongoDB\Driver\ReadPreference;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment