From 107be53ab986a5043a9ce8586b2227a150a9bafc Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Thu, 16 Feb 2023 14:25:16 +0100 Subject: [PATCH] [Validator] Add a few missing option default values --- reference/constraints/UniqueEntity.rst | 4 ++-- reference/constraints/_comparison-propertypath-option.rst.inc | 2 +- reference/constraints/_groups-option.rst.inc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/constraints/UniqueEntity.rst b/reference/constraints/UniqueEntity.rst index fc6fccb18f6..59840bbfe9b 100644 --- a/reference/constraints/UniqueEntity.rst +++ b/reference/constraints/UniqueEntity.rst @@ -145,7 +145,7 @@ Options em ~~ -**type**: ``string`` +**type**: ``string`` **default**: ``null`` The name of the entity manager to use for making the query to determine the uniqueness. If it's left blank, the correct entity manager will be @@ -155,7 +155,7 @@ not need to be used. ``entityClass`` ~~~~~~~~~~~~~~~ -**type**: ``string`` +**type**: ``string`` **default**: ``null`` By default, the query performed to ensure the uniqueness uses the repository of the current class instance. However, in some cases, such as when using Doctrine diff --git a/reference/constraints/_comparison-propertypath-option.rst.inc b/reference/constraints/_comparison-propertypath-option.rst.inc index 35f0da4d189..0965b3cd847 100644 --- a/reference/constraints/_comparison-propertypath-option.rst.inc +++ b/reference/constraints/_comparison-propertypath-option.rst.inc @@ -1,7 +1,7 @@ ``propertyPath`` ~~~~~~~~~~~~~~~~ -**type**: ``string`` +**type**: ``string`` **default**: ``null`` It defines the object property whose value is used to make the comparison. diff --git a/reference/constraints/_groups-option.rst.inc b/reference/constraints/_groups-option.rst.inc index 25ccf6e5d57..e69e96df72e 100644 --- a/reference/constraints/_groups-option.rst.inc +++ b/reference/constraints/_groups-option.rst.inc @@ -1,7 +1,7 @@ ``groups`` ~~~~~~~~~~ -**type**: ``array`` | ``string`` +**type**: ``array`` | ``string`` **default**: ``null`` It defines the validation group or groups of this constraint. Read more about :doc:`validation groups `.