File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ order to be valid. These rules are usually defined using PHP code or
47
47
annotations but they can also be defined as ``.yaml `` or ``.xml `` files inside
48
48
the ``config/validator/ `` directory:
49
49
50
- For example, to guarantee that the ``$name `` property is not empty, add the
50
+ For example, to indicate that the ``$name `` property must not be empty, add the
51
51
following:
52
52
53
53
.. configuration-block ::
@@ -110,6 +110,11 @@ following:
110
110
}
111
111
}
112
112
113
+ Adding this configuration by itself does not yet guarantee that the value will
114
+ not be blank; you can still set it to a blank value if you want.
115
+ To actually guarantee that the value adheres to the constraint, the object must
116
+ be passed to the Validator Service to be checked.
117
+
113
118
.. tip ::
114
119
115
120
Symfony's validator uses PHP reflection, as well as *"getter" * methods, to
You can’t perform that action at this time.
0 commit comments