Skip to content

Commit 35da60d

Browse files
tamirvsweaverryan
authored andcommitted
Update cookbook/doctrine/registration_form.rst
Validate Registration::$user fields, not just it's Type.
1 parent 1b236fb commit 35da60d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cookbook/doctrine/registration_form.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ Start by creating a simple class which represents the "registration"::
151151
{
152152
/**
153153
* @Assert\Type(type="Acme\AccountBundle\Entity\User")
154+
* @Assert\Valid()
154155
*/
155156
protected $user;
156157

0 commit comments

Comments
 (0)