merged branch bschussek/issue5024 (PR #5056)

Commits
-------

ef747ff [Form] Fixed exception message in ObjectChoiceList

Discussion
----------

[Form] Fixed exception message in ObjectChoiceList

Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
This commit is contained in:
Fabien Potencier 2012-07-26 08:35:57 +02:00
commit e08e60ce31
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class ObjectChoiceList extends ChoiceList
foreach ($choices as $i => $choice) {
if (is_array($choice)) {
throw new \InvalidArgumentException('You should pass a plain object array (without groups, $code, $previous) when using the "groupPath" option.');
throw new \InvalidArgumentException('You should pass a plain object array (without groups) when using the "groupPath" option.');
}
try {