Skip to content

Commit 0cf03d8

Browse files
committed
[#2552] Expanding description of UniqueEntity.ignoreNull
1 parent 6982e9e commit 0cf03d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ ignoreNull
159159

160160
**type**: ``Boolean`` **default**: ``true``
161161

162-
If this option is set to ``true``, it allows having multiple ``null`` values for
163-
the field(s) without failing the unique constraint. If set to ``false``, only one
164-
``null`` value is allowed.
162+
If this option is set to ``true``, then the constraint will allow multiple
163+
entities to have a ``null`` value for a field without failing validation.
164+
If set to ``false``, only one ``null`` value is allowed - if a second entity
165+
also has a ``null`` value, validation would fail.

0 commit comments

Comments
 (0)