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
84510286
Commit
84510286
authored
Mar 23, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Specify when findAndModify operations may return null
parent
ccebb5be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Collection.php
src/Collection.php
+9
-7
No files found.
src/Collection.php
View file @
84510286
...
@@ -471,7 +471,7 @@ class Collection
...
@@ -471,7 +471,7 @@ class Collection
/**
/**
* Finds a single document and deletes it, returning the original.
* Finds a single document and deletes it, returning the original.
*
*
* The document to return may be null.
* The document to return may be null
if no document matched the filter
.
*
*
* Note: BSON deserialization of the returned document does not yet support
* Note: BSON deserialization of the returned document does not yet support
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
...
@@ -499,9 +499,10 @@ class Collection
...
@@ -499,9 +499,10 @@ class Collection
* Finds a single document and replaces it, returning either the original or
* Finds a single document and replaces it, returning either the original or
* the replaced document.
* the replaced document.
*
*
* The document to return may be null. By default, the original document is
* The document to return may be null if no document matched the filter. By
* returned. Specify FindOneAndReplace::RETURN_DOCUMENT_AFTER for the
* default, the original document is returned. Specify
* "returnDocument" option to return the updated document.
* FindOneAndReplace::RETURN_DOCUMENT_AFTER for the "returnDocument" option
* to return the updated document.
*
*
* Note: BSON deserialization of the returned document does not yet support
* Note: BSON deserialization of the returned document does not yet support
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
...
@@ -530,9 +531,10 @@ class Collection
...
@@ -530,9 +531,10 @@ class Collection
* Finds a single document and updates it, returning either the original or
* Finds a single document and updates it, returning either the original or
* the updated document.
* the updated document.
*
*
* The document to return may be null. By default, the original document is
* The document to return may be null if no document matched the filter. By
* returned. Specify FindOneAndUpdate::RETURN_DOCUMENT_AFTER for the
* default, the original document is returned. Specify
* "returnDocument" option to return the updated document.
* FindOneAndUpdate::RETURN_DOCUMENT_AFTER for the "returnDocument" option
* to return the updated document.
*
*
* Note: BSON deserialization of the returned document does not yet support
* Note: BSON deserialization of the returned document does not yet support
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
* a custom type map (depends on: https://jira.mongodb.org/browse/PHPC-314).
...
...
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