Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
ccebb5be
Commit
ccebb5be
authored
Mar 23, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Misc doc block updates for Collection operations
parent
c63fc539
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Collection.php
src/Collection.php
+2
-2
BulkWrite.php
src/Operation/BulkWrite.php
+2
-2
Find.php
src/Operation/Find.php
+1
-0
No files found.
src/Collection.php
View file @
ccebb5be
...
@@ -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 http
s://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
Replac
eOne::__construct() for supported options
* @see
Updat
eOne::__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
...
...
src/Operation/BulkWrite.php
View file @
ccebb5be
...
@@ -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 operation
s
.
* instead of each individual operation.
*
*
* Supported options for replaceOne, updateMany, and updateOne operations:
* Supported options for replaceOne, updateMany, and updateOne operations:
*
*
...
...
src/Operation/Find.php
View file @
ccebb5be
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment