{"action":"opened","issue":{"url":"https://api.github.com/repos/schmittjoh/JMSTranslationBundle/issues/230","labels_url":"https://api.github.com/repos/schmittjoh/JMSTranslationBundle/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/schmittjoh/JMSTranslationBundle/issues/230/comments","events_url":"https://api.github.com/repos/schmittjoh/JMSTranslationBundle/issues/230/events","html_url":"https://github.com/schmittjoh/JMSTranslationBundle/issues/230","id":58883229,"number":230,"title":"FormType : @Ignore with choices","user":{"login":"AntoineLemaire","id":2025537,"avatar_url":"https://avatars.githubusercontent.com/u/2025537?v=3","gravatar_id":"","url":"https://api.github.com/users/AntoineLemaire","html_url":"https://github.com/AntoineLemaire","followers_url":"https://api.github.com/users/AntoineLemaire/followers","following_url":"https://api.github.com/users/AntoineLemaire/following{/other_user}","gists_url":"https://api.github.com/users/AntoineLemaire/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoineLemaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoineLemaire/subscriptions","organizations_url":"https://api.github.com/users/AntoineLemaire/orgs","repos_url":"https://api.github.com/users/AntoineLemaire/repos","events_url":"https://api.github.com/users/AntoineLemaire/events{/privacy}","received_events_url":"https://api.github.com/users/AntoineLemaire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T10:48:57Z","updated_at":"2015-02-25T10:48:57Z","closed_at":null,"body":"The @Ignore annotation does not work with choices\r\n\r\n```\r\n$form->add('status','choice', [\r\n    'choices'   => [\r\n        1 => /** @Ignore */'Yes', \r\n        0 => /** @Ignore */'No'\r\n    ],\r\n    'required' => false,\r\n])\r\n\r\nor\r\n\r\n$form->add('status','choice', [\r\n    /** @Ignore */\r\n    'choices'   => [\r\n        1 => 'Yes', \r\n        0 => 'No'\r\n    ],\r\n    'required' => false,\r\n])\r\n\r\nor even\r\n\r\n/** @Ignore */\r\n$form->add('status','choice', [\r\n    'choices'   => [\r\n        1 => 'Yes', \r\n        0 => 'No'\r\n    ],\r\n    'required' => false,\r\n])\r\n```"}}