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
8
8
constraints/NotBlank
9
9
constraints/Blank
10
10
constraints/NotNull
11
- constraints/Null
12
- constraints/True
13
- constraints/False
11
+ constraints/IsNull
12
+ constraints/IsTrue
13
+ constraints/IsFalse
14
14
constraints/Type
15
15
16
16
constraints/Email
Original file line number Diff line number Diff line change 1
1
False
2
2
=====
3
3
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
+
4
9
Validates that a value is ``false ``. Specifically, this checks to see if
5
10
the value is exactly ``false ``, exactly the integer ``0 ``, or exactly the
6
11
string "``0 ``".
Original file line number Diff line number Diff line change 1
1
Null
2
2
====
3
3
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
+
4
9
Validates that a value is exactly equal to ``null ``. To force that a property
5
10
is simply blank (blank string or ``null ``), see the :doc: `/reference/constraints/Blank `
6
11
constraint. To ensure that a property is not null, see :doc: `/reference/constraints/NotNull `.
Original file line number Diff line number Diff line change 1
1
True
2
2
====
3
3
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
+
4
9
Validates that a value is ``true ``. Specifically, this checks to see if
5
10
the value is exactly ``true ``, exactly the integer ``1 ``, or exactly the
6
11
string "``1 ``".
You can’t perform that action at this time.
0 commit comments