symfony/symfony — Issue #2448: validating value for ChoiceType when validating a form
Author: craue
Created: 2011-10-22 11:26:19+00:00
State: open

Currently, a value of `3` submitted for a field defined by

```
$builder->add('myField', 'choice', array(
'choices' => array(
1 => 1,
2 => 2,
),
'required' => true,
));
```

is considered as valid.