File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ Validation Constraints Reference
88 constraints/NotBlank
99 constraints/Blank
1010 constraints/NotNull
11- constraints/Null
12- constraints/True
13- constraints/False
11+ constraints/IsNull
12+ constraints/IsTrue
13+ constraints/IsFalse
1414 constraints/Type
1515
1616 constraints/Email
Original file line number Diff line number Diff line change 11False
22=====
33
4+ .. caution ::
5+
6+ The ``False `` constraint is deprecated since Symfony 2.7
7+ and will be removed in Symfony 3.0. Use the ``IsFalse `` constraint instead.
8+
49Validates that a value is ``false ``. Specifically, this checks to see if
510the value is exactly ``false ``, exactly the integer ``0 ``, or exactly the
611string "``0 ``".
Original file line number Diff line number Diff line change 11Null
22====
33
4+ .. caution ::
5+
6+ The ``Null `` constraint is deprecated since Symfony 2.7
7+ and will be removed in Symfony 3.0. Use the ``IsNull `` constraint instead.
8+
49Validates that a value is exactly equal to ``null ``. To force that a property
510is simply blank (blank string or ``null ``), see the :doc: `/reference/constraints/Blank `
611constraint. To ensure that a property is not null, see :doc: `/reference/constraints/NotNull `.
Original file line number Diff line number Diff line change 11True
22====
33
4+ .. caution ::
5+
6+ The ``True `` constraint is deprecated since Symfony 2.7
7+ and will be removed in Symfony 3.0. Use the ``IsTrue `` constraint instead.
8+
49Validates that a value is ``true ``. Specifically, this checks to see if
510the value is exactly ``true ``, exactly the integer ``1 ``, or exactly the
611string "``1 ``".
You can’t perform that action at this time.
0 commit comments