diff --git a/reference/constraints/When.rst b/reference/constraints/When.rst index 144c1e3904c..ca45293898c 100644 --- a/reference/constraints/When.rst +++ b/reference/constraints/When.rst @@ -173,8 +173,9 @@ in your expression: ``this`` The object being validated (e.g. an instance of Discount). ``value`` - The value of the property being validated (only available when - 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), + or the :doc:`raw value `. The ``value`` variable can be used when you want to execute more complex validation based on its value:
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: