Skip to content

Commit 633a61a

Browse files
committed
Update assert validation length to new format
1 parent bc750f6 commit 633a61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Resources/doc/overriding_forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class User extends BaseUser
3838
* @ORM\Column(type="string", length=255)
3939
*
4040
* @Assert\NotBlank(message="Please enter your name.", groups={"Registration", "Profile"})
41-
* @Assert\MinLength(limit="3", message="The name is too short.", groups={"Registration", "Profile"})
42-
* @Assert\MaxLength(limit="255", message="The name is too long.", groups={"Registration", "Profile"})
41+
* @Assert\Length(min=3, message="The name is too short.", groups={"Registration", "Profile"})
42+
* @Assert\Length(max=255, message="The name is too long.", groups={"Registration", "Profile"})
4343
*/
4444
protected $name;
4545

0 commit comments

Comments
 (0)