diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index 39f3283bda0..813166af0bd 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -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` | +----------------+-------------------------------------------------------------------------------------+ @@ -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