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
4747annotations but they can also be defined as ``.yaml `` or ``.xml `` files inside
4848the ``config/validator/ `` directory:
4949
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
5151following:
5252
5353.. configuration-block ::
@@ -110,6 +110,11 @@ following:
110110 }
111111 }
112112
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+
113118.. tip ::
114119
115120 Symfony's validator uses PHP reflection, as well as *"getter" * methods, to
You can’t perform that action at this time.
0 commit comments