Symfony-2 daje więcej niż jeden komunikat o błędzie walidacji
Podany jest mój validation.yml:
task:
- Email:
message: The email "{{ value }}" is not a valid email.
- MinLength: { limit: 50, message: You must be 50 or under to enter. }
Moim problemem jest to, że jeśli podam „źle-e-mail” w polu zadań, to wyświetlają się dwa komunikaty o błędach:
The email "wrong-email" is not a valid email.
You must be 50 or under to enter.
Właściwie chcę pokazać tylko jeden komunikat o błędzie na raz. Oznacza to, że powinien sprawdzić poprawność „MinLength” tylko wtedy, gdy jest to prawidłowy adres e-mail.