{"action":"opened","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/15634","labels_url":"https://api.github.com/repos/symfony/symfony/issues/15634/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/15634/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/15634/events","html_url":"https://github.com/symfony/symfony/issues/15634","id":103533875,"number":15634,"title":"[Form][2.7] Choices groups with empty array fire 500 internal server error","user":{"login":"falinsky","id":859638,"avatar_url":"https://avatars.githubusercontent.com/u/859638?v=3","gravatar_id":"","url":"https://api.github.com/users/falinsky","html_url":"https://github.com/falinsky","followers_url":"https://api.github.com/users/falinsky/followers","following_url":"https://api.github.com/users/falinsky/following{/other_user}","gists_url":"https://api.github.com/users/falinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/falinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falinsky/subscriptions","organizations_url":"https://api.github.com/users/falinsky/orgs","repos_url":"https://api.github.com/users/falinsky/repos","events_url":"https://api.github.com/users/falinsky/events{/privacy}","received_events_url":"https://api.github.com/users/falinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T15:20:01Z","updated_at":"2015-08-27T15:20:01Z","closed_at":null,"body":"Trying add an entity Field Type with choices like next throw ContextErrorException:\r\n\r\n```php\r\n'choices' => array(\r\n   'first group' => array($object1, $object2),\r\n   'empty group' => array(),\r\n   'second group' => array($object3, $object4)\r\n)\r\n```\r\n\r\n```\r\nNotice: Undefined index:\r\n\r\nin vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/Factory/DefaultChoiceListFactory.php at line 203 \r\n```"}}