Skip to content
Merged
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: 7 additions & 1 deletion validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ Inside the template, you can output the list of errors exactly as needed:
.. note::

Each validation error (called a "constraint violation"), is represented by
a :class:`Symfony\\Component\\Validator\\ConstraintViolation` object.
a :class:`Symfony\\Component\\Validator\\ConstraintViolation` object. This
object allows you, among other things, to get the constraint that caused this
violation thanks to the ``ConstraintViolation::getConstraint()`` method.

.. versionadded:: 6.3

The ``ConstraintViolation::getConstraint()`` method was introduced in Symfony 6.3.

.. index::
single: Validation; Callables
Expand Down