|
@@ -125,6 +125,11 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'Symfony\Component\Validator\Constraints\Choice':
|
|
case 'Symfony\Component\Validator\Constraints\Choice':
|
|
|
|
+ if (!$constraint->choices) {
|
|
|
|
+ // choices probably defined as a callback
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
return new TypeGuess(
|
|
return new TypeGuess(
|
|
'choice',
|
|
'choice',
|
|
array('choices' => $constraint->choices),
|
|
array('choices' => $constraint->choices),
|