hi: i was writing a small User class and i have noticed that the minlength does not validate the value if the type of the field was a password look at this code :
in my class i have this : [code] /** * @ORM\Column(type="string") * @Assert\MinLength(limit=8) * @Assert\NotBlank() */ protected $password; [/code] and the form is very small like this : [code] $builder ->add('username','text') ->add('email','email') ->add('password','password') ; [/code] if i submit my form with only 1 char in the password field , the form will be accepted even though i have told it to be validated and the count of the chars must be 8 now if i change the password field type to text, the form will not be submitted and it will return back with the error message .. i have searched but didnt find any solutions ( even though i have found peoples said that the yml or xml is much more better way to put my validations rule, others said use the fosUserBundle which will be much more better ) but since am new here i wanted to understand how everything work before i depend on other bundles .. thanks for your help .. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en