File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ using an email address that already exists in the system.
15
15
| | - `entityClass `_ |
16
16
| | - `errorPath `_ |
17
17
| | - `ignoreNull `_ |
18
+ | | - `ignoreFalse `_ |
18
19
| | - `payload `_ |
19
20
+----------------+-------------------------------------------------------------------------------------+
20
21
| Class | :class: `Symfony\\ Bridge\\ Doctrine\\ Validator\\ Constraints\\ UniqueEntity ` |
@@ -286,6 +287,16 @@ entities to have a ``null`` value for a field without failing validation.
286
287
If set to ``false ``, only one ``null `` value is allowed - if a second entity
287
288
also has a ``null `` value, validation would fail.
288
289
290
+ ignoreFalse
291
+ ~~~~~~~~~~
292
+
293
+ **type **: ``boolean `` **default **: ``false ``
294
+
295
+ If this option is set to ``true ``, then the constraint will allow multiple
296
+ entities to have a ``false `` value for a boolean field without failing validation.
297
+ If set to ``false ``, only one ``false `` value is allowed - if a second entity
298
+ also has a ``false `` value, validation would fail.
299
+
289
300
.. include :: /reference/constraints/_payload-option.rst.inc
290
301
291
302
.. _`race conditions` : https://en.wikipedia.org/wiki/Race_condition
You can’t perform that action at this time.
0 commit comments