File tree Expand file tree Collapse file tree 12 files changed +55
-22
lines changed Expand file tree Collapse file tree 12 files changed +55
-22
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ type: boolean
4
4
description : |
5
5
If ``true``, allows the write operation to circumvent document level
6
6
validation. Defaults to ``false``.
7
+
8
+ This option is available in MongoDB 3.2+ and is ignored for older server
9
+ versions, which do not support document level validation.
7
10
interface : phpmethod
8
11
operation : ~
9
12
optional : true
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ class Aggregate implements Executable
62
62
*
63
63
* * batchSize (integer): The number of documents to return per batch.
64
64
*
65
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
66
- * out of document level validation. This only applies when the $out
65
+ * * bypassDocumentValidation (boolean): If true, allows the write to
66
+ * circumvent document level validation. This only applies when the $out
67
67
* stage is specified.
68
68
*
69
69
* For servers < 3.2, this option is ignored as document level validation
Original file line number Diff line number Diff line change @@ -86,8 +86,11 @@ class BulkWrite implements Executable
86
86
*
87
87
* Supported options for the bulk write operation:
88
88
*
89
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
90
- * out of document level validation.
89
+ * * bypassDocumentValidation (boolean): If true, allows the write to
90
+ * circumvent document level validation. The default is false.
91
+ *
92
+ * For servers < 3.2, this option is ignored as document level validation
93
+ * is not available.
91
94
*
92
95
* * ordered (boolean): If true, when an insert fails, return without
93
96
* performing the remaining writes. If false, when a write fails,
Original file line number Diff line number Diff line change @@ -54,8 +54,11 @@ class FindAndModify implements Executable
54
54
* This is not supported for server versions < 3.4 and will result in an
55
55
* exception at execution time if used.
56
56
*
57
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
58
- * out of document level validation.
57
+ * * bypassDocumentValidation (boolean): If true, allows the write to
58
+ * circumvent document level validation.
59
+ *
60
+ * For servers < 3.2, this option is ignored as document level validation
61
+ * is not available.
59
62
*
60
63
* * fields (document): Limits the fields to return for the matching
61
64
* document.
Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ class FindOneAndReplace implements Executable
41
41
*
42
42
* Supported options:
43
43
*
44
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
45
- * out of document level validation.
44
+ * * bypassDocumentValidation (boolean): If true, allows the write to
45
+ * circumvent document level validation.
46
+ *
47
+ * For servers < 3.2, this option is ignored as document level validation
48
+ * is not available.
46
49
*
47
50
* * collation (document): Collation specification.
48
51
*
Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ class FindOneAndUpdate implements Executable
41
41
*
42
42
* Supported options:
43
43
*
44
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
45
- * out of document level validation.
44
+ * * bypassDocumentValidation (boolean): If true, allows the write to
45
+ * circumvent document level validation.
46
+ *
47
+ * For servers < 3.2, this option is ignored as document level validation
48
+ * is not available.
46
49
*
47
50
* * collation (document): Collation specification.
48
51
*
Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ class InsertMany implements Executable
45
45
*
46
46
* Supported options:
47
47
*
48
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
49
- * out of document level validation.
48
+ * * bypassDocumentValidation (boolean): If true, allows the write to
49
+ * circumvent document level validation.
50
+ *
51
+ * For servers < 3.2, this option is ignored as document level validation
52
+ * is not available.
50
53
*
51
54
* * ordered (boolean): If true, when an insert fails, return without
52
55
* performing the remaining writes. If false, when a write fails,
Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ class InsertOne implements Executable
45
45
*
46
46
* Supported options:
47
47
*
48
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
49
- * out of document level validation.
48
+ * * bypassDocumentValidation (boolean): If true, allows the write to
49
+ * circumvent document level validation.
50
+ *
51
+ * For servers < 3.2, this option is ignored as document level validation
52
+ * is not available.
50
53
*
51
54
* * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
52
55
*
Original file line number Diff line number Diff line change @@ -39,8 +39,11 @@ class ReplaceOne implements Executable
39
39
*
40
40
* Supported options:
41
41
*
42
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
43
- * out of document level validation.
42
+ * * bypassDocumentValidation (boolean): If true, allows the write to
43
+ * circumvent document level validation.
44
+ *
45
+ * For servers < 3.2, this option is ignored as document level validation
46
+ * is not available.
44
47
*
45
48
* * collation (document): Collation specification.
46
49
*
Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ class Update implements Executable
50
50
*
51
51
* Supported options:
52
52
*
53
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
54
- * out of document level validation.
53
+ * * bypassDocumentValidation (boolean): If true, allows the write to
54
+ * circumvent document level validation.
55
+ *
56
+ * For servers < 3.2, this option is ignored as document level validation
57
+ * is not available.
55
58
*
56
59
* * collation (document): Collation specification.
57
60
*
Original file line number Diff line number Diff line change @@ -39,8 +39,11 @@ class UpdateMany implements Executable
39
39
*
40
40
* Supported options:
41
41
*
42
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
43
- * out of document level validation.
42
+ * * bypassDocumentValidation (boolean): If true, allows the write to
43
+ * circumvent document level validation.
44
+ *
45
+ * For servers < 3.2, this option is ignored as document level validation
46
+ * is not available.
44
47
*
45
48
* * collation (document): Collation specification.
46
49
*
Original file line number Diff line number Diff line change @@ -39,8 +39,11 @@ class UpdateOne implements Executable
39
39
*
40
40
* Supported options:
41
41
*
42
- * * bypassDocumentValidation (boolean): If true, allows the write to opt
43
- * out of document level validation.
42
+ * * bypassDocumentValidation (boolean): If true, allows the write to
43
+ * circumvent document level validation.
44
+ *
45
+ * For servers < 3.2, this option is ignored as document level validation
46
+ * is not available.
44
47
*
45
48
* * collation (document): Collation specification.
46
49
*
You can’t perform that action at this time.
0 commit comments