Skip to content

Commit ec29f1e

Browse files
committed
fixup
1 parent 5df76b2 commit ec29f1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/constraints/Traverse.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Basic Usage
1818

1919
In the following example, create three classes ``Book``, ``Author`` and ``Editor``
2020
that all have constraints on their properties. Furthermore, ``Book``
21-
stores an ``Author`` and an ``Editor`` instances that must be valid too::
21+
stores an ``Author`` and an ``Editor`` instance that must be valid too::
2222

2323
.. configuration-block::
2424

@@ -79,6 +79,7 @@ stores an ``Author`` and an ``Editor`` instances that must be valid too::
7979
namespace AppBundle\Entity;
8080
8181
use Symfony\Component\Validator\Constraints as Assert;
82+
use Symfony\Component\Validator\Mapping\ClassMetadata;
8283
8384
class Book
8485
{

0 commit comments

Comments
 (0)