From 07c02099f214c1d321fbcbf5c2c1457dce52aeb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20G=C3=B6nczi?= <32277563+goncziakos@users.noreply.github.com> Date: Thu, 5 Apr 2018 12:03:37 +0200 Subject: [PATCH 1/2] Groups option, missing --- reference/constraints/UniqueEntity.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index 39f3283bda0..56599661bbd 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`` + +If your object takes advantage of validation groups, you will need to specify which validation group (s) your form should use. + .. include:: /reference/constraints/_payload-option.rst.inc From 5275e00a39b7c4ed152e6d19c4b472852b2217c6 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 18 Apr 2018 09:23:22 +0200 Subject: [PATCH 2/2] Minor reword --- reference/constraints/UniqueEntity.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index 56599661bbd..813166af0bd 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -16,7 +16,7 @@ using an email address that already exists in the system. | | - `errorPath`_ | | | - `ignoreNull`_ | | | - `payload`_ | -| | - `groups`_ | +| | - `groups`_ | +----------------+-------------------------------------------------------------------------------------+ | Class | :class:`Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity` | +----------------+-------------------------------------------------------------------------------------+ @@ -285,10 +285,10 @@ 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`` -If your object takes advantage of validation groups, you will need to specify which validation group (s) your form should use. +It defines the validation group or groups that the form should use. .. include:: /reference/constraints/_payload-option.rst.inc