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 e579876 commit 070489bCopy full SHA for 070489b
reference/constraints/Expression.rst
@@ -217,6 +217,13 @@ more about the expression language syntax, see
217
// ...
218
}
219
220
+ .. caution::
221
+
222
+ In Symfony 2.4 and Symfony 2.5, if the property (e.g. ``isTechnicalPost``)
223
+ were ``null``, the expression would never be called and the value
224
+ would be seen as valid. To ensure that the value is not ``null``,
225
+ use the :doc:`NotNull constraint </reference/constraints/NotNull>`.
226
227
For more information about the expression and what variables are available
228
to you, see the :ref:`expression <reference-constraint-expression-option>`
229
option details below.
0 commit comments