symfony/symfony — pull request #7940 by bschussek (2013-05-05 22:32:16+00:00)
Title: [Form] Fixed expanded choice field to be marked invalid when unknown choices are submitted

#7939 must be merged before this PR is merged.

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #5113
| License | MIT
| Doc PR | -

TODO:

- [ ] test EntityChoiceList and ModelChoiceList for stricter rules
- [ ] remove/deprecate the ChoiceList::getIndicesFor*() methods