We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_valid()
2 parents e39321b + 1881480 commit ee1f289Copy full SHA for ee1f289
reference/constraints/Expression.rst
@@ -244,6 +244,14 @@ in your expression:
244
* ``value``: The value of the property being validated (only available when
245
the constraint is applied directly to a property);
246
247
+You also have access to the ``is_valid()`` function in your expression. It
248
+allows to check that the data passed to function doesn't raise any
249
+validation violation.
250
+
251
+.. versionadded:: 6.4
252
253
+ The ``is_valid()`` expression function was introduced in Symfony 6.4.
254
255
.. include:: /reference/constraints/_groups-option.rst.inc
256
257
``message``
0 commit comments