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.
null
1 parent 1ea6304 commit b3964c7Copy full SHA for b3964c7
reference/constraints/Expression.rst
@@ -217,6 +217,12 @@ more about the expression language syntax, see
217
// ...
218
}
219
220
+ .. versionadded:: 2.6
221
+ In Symfony 2.6, the Expression constraint *is* executed if the value
222
+ is ``null``. Before 2.6, if the value was ``null``, the expression
223
+ was never executed and the value was considered valid (unless you
224
+ also had a constraint like `NotBlank` on the property).
225
+
226
For more information about the expression and what variables are available
227
to you, see the :ref:`expression <reference-constraint-expression-option>`
228
option details below.
0 commit comments