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.
2 parents f0897ca + 08081f2 commit 455d2ccCopy full SHA for 455d2cc
reference/constraints/When.rst
@@ -187,8 +187,9 @@ applied but the constraints defined in ``otherwise`` option (if provided) will b
187
``this``
188
The object being validated (e.g. an instance of Discount).
189
``value``
190
- The value of the property being validated (only available when
191
- the constraint is applied to a property).
+ Either the object being validated (when the constraint is applied to a class),
+ the value of the property being validated (when applied to a property),
192
+ or the :doc:`raw value </validation/raw_values>`.
193
``context``
194
The :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
195
object that provides information such as the currently validated class, the
0 commit comments