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 ::
@@ -124,6 +124,11 @@ following:
124
124
}
125
125
}
126
126
127
+ Adding this configuration by itself does not yet guarantee that the value will
128
+ not be blank; you can still set it to a blank value if you want.
129
+ To actually guarantee that the value adheres to the constraint, the object must
130
+ be passed to the validator service to be checked.
131
+
127
132
.. tip ::
128
133
129
134
Symfony's validator uses PHP reflection, as well as *"getter" * methods, to
You can’t perform that action at this time.
0 commit comments