class - Symfony2 validation constraint 'Symfony\Component\Validator\Constraints\MaxLength' not found -


i new symfony , frameworks have been following symblog tutorial have become stuck when validating forms.

get error...

fatalerrorexception: error: class 'symfony\component\validator\constraints\maxlength' not found in /applications/mamp/htdocs/portfolio/symfony/src/blogger/blogbundle/entity/enquiry.php line 71

where going wrong?

b

maxlength deprecated since symfony 2.1 use length max option set.

the reference can found in upgrade-2.1.md in validator section.


Comments