{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/17579","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/17579/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/17579/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/17579/events","html_url":"https://github.com/symfony/symfony/issues/17579","id":129267850,"number":17579,"title":"Improve handling of choice fields with no choices in form templates","user":{"login":"backbone87","id":1196313,"avatar_url":"https://avatars.githubusercontent.com/u/1196313?v=3","gravatar_id":"","url":"https://api.github.com/users/backbone87","html_url":"https://github.com/backbone87","followers_url":"https://api.github.com/users/backbone87/followers","following_url":"https://api.github.com/users/backbone87/following{/other_user}","gists_url":"https://api.github.com/users/backbone87/gists{/gist_id}","starred_url":"https://api.github.com/users/backbone87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbone87/subscriptions","organizations_url":"https://api.github.com/users/backbone87/orgs","repos_url":"https://api.github.com/users/backbone87/repos","events_url":"https://api.github.com/users/backbone87/events{/privacy}","received_events_url":"https://api.github.com/users/backbone87/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/symfony/symfony/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/symfony/symfony/labels/Form","name":"Form","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-01-27T21:05:07Z","updated_at":"2016-03-10T22:48:42Z","closed_at":null,"body":"Simple use-case: categories and products\r\nWhen editing the product an expanded (multiple) choice field of categories is displayed.\r\nHowever when you create a product before you have created any category, there is simply the label/legend of the choice and some empty containers.\r\n\r\nThere are multiple solutions i came up with:\r\n- Add a (configurable) \"no choices available\" message (my preferred solution)\r\n- Just output nothing for form_row and form_widget; form_label behaves normal\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/195085131","html_url":"https://github.com/symfony/symfony/issues/17579#issuecomment-195085131","issue_url":"https://api.github.com/repos/symfony/symfony/issues/17579","id":195085131,"user":{"login":"backbone87","id":1196313,"avatar_url":"https://avatars.githubusercontent.com/u/1196313?v=3","gravatar_id":"","url":"https://api.github.com/users/backbone87","html_url":"https://github.com/backbone87","followers_url":"https://api.github.com/users/backbone87/followers","following_url":"https://api.github.com/users/backbone87/following{/other_user}","gists_url":"https://api.github.com/users/backbone87/gists{/gist_id}","starred_url":"https://api.github.com/users/backbone87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbone87/subscriptions","organizations_url":"https://api.github.com/users/backbone87/orgs","repos_url":"https://api.github.com/users/backbone87/repos","events_url":"https://api.github.com/users/backbone87/events{/privacy}","received_events_url":"https://api.github.com/users/backbone87/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T22:48:42Z","updated_at":"2016-03-10T22:48:42Z","body":"@HeahDude i agree with your approach, but ultimately the symfony deciders have to agree. maybe i would rename the option to `empty_message` to keep a common DX, if it would be used in collection type, too (maybe in a later PR)."}}