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
c2314d6c
Commit
c2314d6c
authored
Aug 07, 2017
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise docs for bypassDocumentValidation option
parent
a2845655
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
55 additions
and
22 deletions
+55
-22
apiargs-MongoDBCollection-common-option.yaml
docs/includes/apiargs-MongoDBCollection-common-option.yaml
+3
-0
Aggregate.php
src/Operation/Aggregate.php
+2
-2
BulkWrite.php
src/Operation/BulkWrite.php
+5
-2
FindAndModify.php
src/Operation/FindAndModify.php
+5
-2
FindOneAndReplace.php
src/Operation/FindOneAndReplace.php
+5
-2
FindOneAndUpdate.php
src/Operation/FindOneAndUpdate.php
+5
-2
InsertMany.php
src/Operation/InsertMany.php
+5
-2
InsertOne.php
src/Operation/InsertOne.php
+5
-2
ReplaceOne.php
src/Operation/ReplaceOne.php
+5
-2
Update.php
src/Operation/Update.php
+5
-2
UpdateMany.php
src/Operation/UpdateMany.php
+5
-2
UpdateOne.php
src/Operation/UpdateOne.php
+5
-2
No files found.
docs/includes/apiargs-MongoDBCollection-common-option.yaml
View file @
c2314d6c
...
...
@@ -4,6 +4,9 @@ type: boolean
description
:
|
If ``true``, allows the write operation to circumvent document level
validation. Defaults to ``false``.
This option is available in MongoDB 3.2+ and is ignored for older server
versions, which do not support document level validation.
interface
:
phpmethod
operation
:
~
optional
:
true
...
...
src/Operation/Aggregate.php
View file @
c2314d6c
...
...
@@ -62,8 +62,8 @@ class Aggregate implements Executable
*
* * batchSize (integer): The number of documents to return per batch.
*
* * bypassDocumentValidation (boolean): If true, allows the write to
opt
*
out of
document level validation. This only applies when the $out
* * bypassDocumentValidation (boolean): If true, allows the write to
*
circumvent
document level validation. This only applies when the $out
* stage is specified.
*
* For servers < 3.2, this option is ignored as document level validation
...
...
src/Operation/BulkWrite.php
View file @
c2314d6c
...
...
@@ -86,8 +86,11 @@ class BulkWrite implements Executable
*
* Supported options for the bulk write operation:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation. The default is false.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * ordered (boolean): If true, when an insert fails, return without
* performing the remaining writes. If false, when a write fails,
...
...
src/Operation/FindAndModify.php
View file @
c2314d6c
...
...
@@ -54,8 +54,11 @@ class FindAndModify implements Executable
* This is not supported for server versions < 3.4 and will result in an
* exception at execution time if used.
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * fields (document): Limits the fields to return for the matching
* document.
...
...
src/Operation/FindOneAndReplace.php
View file @
c2314d6c
...
...
@@ -41,8 +41,11 @@ class FindOneAndReplace implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
src/Operation/FindOneAndUpdate.php
View file @
c2314d6c
...
...
@@ -41,8 +41,11 @@ class FindOneAndUpdate implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
src/Operation/InsertMany.php
View file @
c2314d6c
...
...
@@ -45,8 +45,11 @@ class InsertMany implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * ordered (boolean): If true, when an insert fails, return without
* performing the remaining writes. If false, when a write fails,
...
...
src/Operation/InsertOne.php
View file @
c2314d6c
...
...
@@ -45,8 +45,11 @@ class InsertOne implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
*
...
...
src/Operation/ReplaceOne.php
View file @
c2314d6c
...
...
@@ -39,8 +39,11 @@ class ReplaceOne implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
src/Operation/Update.php
View file @
c2314d6c
...
...
@@ -50,8 +50,11 @@ class Update implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
src/Operation/UpdateMany.php
View file @
c2314d6c
...
...
@@ -39,8 +39,11 @@ class UpdateMany implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
src/Operation/UpdateOne.php
View file @
c2314d6c
...
...
@@ -39,8 +39,11 @@ class UpdateOne implements Executable
*
* Supported options:
*
* * bypassDocumentValidation (boolean): If true, allows the write to opt
* out of document level validation.
* * bypassDocumentValidation (boolean): If true, allows the write to
* circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
*
* * collation (document): Collation specification.
*
...
...
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