Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ using an email address that already exists in the system.
| | - `errorPath`_ |
| | - `ignoreNull`_ |
| | - `payload`_ |
| | - `groups`_ |
+----------------+-------------------------------------------------------------------------------------+
| Class | :class:`Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity` |
+----------------+-------------------------------------------------------------------------------------+
Expand Down Expand Up @@ -283,4 +284,11 @@ entities to have a ``null`` value for a field without failing validation.
If set to ``false``, only one ``null`` value is allowed - if a second entity
also has a ``null`` value, validation would fail.

groups
~~~~~~

**type**: ``array`` | ``string``

It defines the validation group or groups that the form should use.

.. include:: /reference/constraints/_payload-option.rst.inc