TypeGuess fixed for Date/Time constraints

This commit is contained in:
Tony Malzhacker 2012-05-18 17:46:11 +02:00
parent 41bed29c80
commit f8839532f8

View File

@ -134,13 +134,13 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
case 'Symfony\Component\Validator\Constraints\Date':
return new TypeGuess(
'date',
array(),
array('input'=>'string'),
Guess::HIGH_CONFIDENCE
);
case 'Symfony\Component\Validator\Constraints\DateTime':
return new TypeGuess(
'datetime',
array(),
array('input'=>'string'),
Guess::HIGH_CONFIDENCE
);
case 'Symfony\Component\Validator\Constraints\Email':
@ -212,7 +212,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
case 'Symfony\Component\Validator\Constraints\Time':
return new TypeGuess(
'time',
array(),
array('input'=>'string'),
Guess::HIGH_CONFIDENCE
);
case 'Symfony\Component\Validator\Constraints\Url':