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.
1515| | - `entityClass `_ |
1616| | - `errorPath `_ |
1717| | - `ignoreNull `_ |
18+ | | - `ignoreFalse `_ |
1819| | - `payload `_ |
1920+----------------+-------------------------------------------------------------------------------------+
2021| Class | :class: `Symfony\\ Bridge\\ Doctrine\\ Validator\\ Constraints\\ UniqueEntity ` |
@@ -286,6 +287,16 @@ entities to have a ``null`` value for a field without failing validation.
286287If set to ``false ``, only one ``null `` value is allowed - if a second entity
287288also has a ``null `` value, validation would fail.
288289
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+
289300.. include :: /reference/constraints/_payload-option.rst.inc
290301
291302.. _`race conditions` : https://en.wikipedia.org/wiki/Race_condition
You can’t perform that action at this time.
0 commit comments