Commit c3e62136 authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #391

parents a2845655 c2314d6c
...@@ -4,6 +4,9 @@ type: boolean ...@@ -4,6 +4,9 @@ type: boolean
description: | description: |
If ``true``, allows the write operation to circumvent document level If ``true``, allows the write operation to circumvent document level
validation. Defaults to ``false``. 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 interface: phpmethod
operation: ~ operation: ~
optional: true optional: true
......
...@@ -62,8 +62,8 @@ class Aggregate implements Executable ...@@ -62,8 +62,8 @@ class Aggregate implements Executable
* *
* * batchSize (integer): The number of documents to return per batch. * * batchSize (integer): The number of documents to return per batch.
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. This only applies when the $out * circumvent document level validation. This only applies when the $out
* stage is specified. * stage is specified.
* *
* For servers < 3.2, this option is ignored as document level validation * For servers < 3.2, this option is ignored as document level validation
......
...@@ -86,8 +86,11 @@ class BulkWrite implements Executable ...@@ -86,8 +86,11 @@ class BulkWrite implements Executable
* *
* Supported options for the bulk write operation: * Supported options for the bulk write operation:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * 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 * * ordered (boolean): If true, when an insert fails, return without
* performing the remaining writes. If false, when a write fails, * performing the remaining writes. If false, when a write fails,
......
...@@ -54,8 +54,11 @@ class FindAndModify implements Executable ...@@ -54,8 +54,11 @@ class FindAndModify implements Executable
* This is not supported for server versions < 3.4 and will result in an * This is not supported for server versions < 3.4 and will result in an
* exception at execution time if used. * exception at execution time if used.
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * 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 * * fields (document): Limits the fields to return for the matching
* document. * document.
......
...@@ -41,8 +41,11 @@ class FindOneAndReplace implements Executable ...@@ -41,8 +41,11 @@ class FindOneAndReplace implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
...@@ -41,8 +41,11 @@ class FindOneAndUpdate implements Executable ...@@ -41,8 +41,11 @@ class FindOneAndUpdate implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
...@@ -45,8 +45,11 @@ class InsertMany implements Executable ...@@ -45,8 +45,11 @@ class InsertMany implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * 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 * * ordered (boolean): If true, when an insert fails, return without
* performing the remaining writes. If false, when a write fails, * performing the remaining writes. If false, when a write fails,
......
...@@ -45,8 +45,11 @@ class InsertOne implements Executable ...@@ -45,8 +45,11 @@ class InsertOne implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * 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. * * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
* *
......
...@@ -39,8 +39,11 @@ class ReplaceOne implements Executable ...@@ -39,8 +39,11 @@ class ReplaceOne implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
...@@ -50,8 +50,11 @@ class Update implements Executable ...@@ -50,8 +50,11 @@ class Update implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
...@@ -39,8 +39,11 @@ class UpdateMany implements Executable ...@@ -39,8 +39,11 @@ class UpdateMany implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
...@@ -39,8 +39,11 @@ class UpdateOne implements Executable ...@@ -39,8 +39,11 @@ class UpdateOne implements Executable
* *
* Supported options: * Supported options:
* *
* * bypassDocumentValidation (boolean): If true, allows the write to opt * * bypassDocumentValidation (boolean): If true, allows the write to
* out of document level validation. * circumvent document level validation.
*
* For servers < 3.2, this option is ignored as document level validation
* is not available.
* *
* * collation (document): Collation specification. * * collation (document): Collation specification.
* *
......
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