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:
commit
e08e60ce31
|
@ -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 {
|
||||
|
|
Reference in New Issue