We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0bcc16b commit700747dCopy full SHA for 700747d
book/validation.rst
@@ -113,8 +113,9 @@ Next, to actually validate an ``Author`` object, use the ``validate`` method
113
on the ``validator`` service (class:class:`Symfony\\Component\\Validator\\Validator`).
114
The job of the ``validator`` is easy: to read the constraints (i.e. rules)
115
of a class and verify whether or not the data on the object satisfies those
116
-constraints. If validation fails, an array of errors is returned. Take this
117
-simple example from inside a controller::
+constraints. If validation fails, a non-empty list
+(class:class:`Symfony\\Component\\Validator\\ConstraintViolationList`) of errors
118
+is returned. Take this simple example from inside a controller::
119
120
// ...
121
use Symfony\Component\HttpFoundation\Response;