merged branch Gregwar/email_guessing (PR #1970)

Commits
-------

80d1718 [Fix] Email() constraints now guess as 'email' field type

Discussion
----------

[Fix] Email() constraints now guess as 'email' field type

I don't know what this was set to "text"
This commit is contained in:
Fabien Potencier 2011-08-19 14:03:35 +02:00
commit e7ec02ffcc

View File

@ -144,7 +144,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
); );
case 'Symfony\Component\Validator\Constraints\Email': case 'Symfony\Component\Validator\Constraints\Email':
return new TypeGuess( return new TypeGuess(
'text', 'email',
array(), array(),
Guess::HIGH_CONFIDENCE Guess::HIGH_CONFIDENCE
); );