remove MinCount and MaxCount contraints. It has been replaced by Count constraints.

This commit is contained in:
franek 2013-10-01 16:29:34 +02:00
parent ffe2fb9993
commit 58a3296e36

View File

@ -164,8 +164,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
case 'Symfony\Component\Validator\Constraints\Range': case 'Symfony\Component\Validator\Constraints\Range':
return new TypeGuess('number', array(), Guess::LOW_CONFIDENCE); return new TypeGuess('number', array(), Guess::LOW_CONFIDENCE);
case 'Symfony\Component\Validator\Constraints\MinCount': case 'Symfony\Component\Validator\Constraints\Count':
case 'Symfony\Component\Validator\Constraints\MaxCount':
return new TypeGuess('collection', array(), Guess::LOW_CONFIDENCE); return new TypeGuess('collection', array(), Guess::LOW_CONFIDENCE);
case 'Symfony\Component\Validator\Constraints\True': case 'Symfony\Component\Validator\Constraints\True':