Skip to content

Commit 43a51a8

Browse files
committed
minor #20684 [Validator] Allow Unique constraint validation on all elements (mdoutreluingne)
This PR was squashed before being merged into the 7.3 branch. Discussion ---------- [Validator] Allow Unique constraint validation on all elements Fixes #20650 Commits ------- 387943c [Validator] Allow Unique constraint validation on all elements
2 parents 6af45fb + 387943c commit 43a51a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/constraints/Unique.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,17 @@ trailing whitespace during validation.
216216

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

219+
``stopOnFirstError``
220+
~~~~~~~~~~~~~~~~~~~~
221+
222+
**type**: ``boolean`` **default**: ``true``
223+
224+
By default, this constraint stops at the first violation. If the option is set to ``false``,
225+
validation will continue on all elements and return all detected
226+
:class:`Symfony\\Component\\Validator\\ConstraintViolation` object.
227+
228+
.. versionadded:: 7.3
229+
230+
The ``stopOnFirstError`` option was introduced in Symfony 7.3.
231+
219232
.. _`PHP callable`: https://www.php.net/callable

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy