{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/13770","labels_url":"https://api.github.com/repos/symfony/symfony/issues/13770/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13770/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/13770/events","html_url":"https://github.com/symfony/symfony/issues/13770","id":58662296,"number":13770,"title":"configureOptions is not taken into account (version 2.6.4)","user":{"login":"ptsavdar","id":3414935,"avatar_url":"https://avatars.githubusercontent.com/u/3414935?v=3","gravatar_id":"","url":"https://api.github.com/users/ptsavdar","html_url":"https://github.com/ptsavdar","followers_url":"https://api.github.com/users/ptsavdar/followers","following_url":"https://api.github.com/users/ptsavdar/following{/other_user}","gists_url":"https://api.github.com/users/ptsavdar/gists{/gist_id}","starred_url":"https://api.github.com/users/ptsavdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptsavdar/subscriptions","organizations_url":"https://api.github.com/users/ptsavdar/orgs","repos_url":"https://api.github.com/users/ptsavdar/repos","events_url":"https://api.github.com/users/ptsavdar/events{/privacy}","received_events_url":"https://api.github.com/users/ptsavdar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-23T22:44:25Z","updated_at":"2015-02-23T23:07:12Z","closed_at":null,"body":"I don't know if it's me, if I'm doing something wrong but it seems that the method configureOptions is not taken into account. Though the old and deprecated method setDefaultOptions seems to do the job just fine. Here is an example of my class. \r\n\r\n```php\r\nclass BitfieldType extends AbstractType\r\n{\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        $builder->addModelTransformer(new BitfieldToArrayTransformer());\r\n    }\r\n\r\n    public function getParent()\r\n    {\r\n        return 'choice';\r\n    }\r\n\r\n    public function getName()\r\n    {\r\n        return 'bitfield';\r\n    }\r\n\r\n    public function configureOptions(OptionsResolver $resolver)\r\n    {\r\n        $resolver->setDefaults(\r\n            array(\r\n                'expanded' => true,\r\n                'multiple' => true\r\n            )\r\n        );\r\n    }\r\n\r\n    /*public function setDefaultOptions(OptionsResolverInterface $resolver)\r\n    {\r\n        $resolver->setDefaults(\r\n            array(\r\n                'expanded' => true,\r\n                'multiple' => true\r\n            )\r\n        );\r\n    }*/\r\n}\r\n```\r\n\r\nIf I leave the configureOptions I get a select element, while with setDefaultOptions I get the desired group of checkboxes."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/75657918","html_url":"https://github.com/symfony/symfony/issues/13770#issuecomment-75657918","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13770","id":75657918,"user":{"login":"xabbuh","id":1957048,"avatar_url":"https://avatars.githubusercontent.com/u/1957048?v=3","gravatar_id":"","url":"https://api.github.com/users/xabbuh","html_url":"https://github.com/xabbuh","followers_url":"https://api.github.com/users/xabbuh/followers","following_url":"https://api.github.com/users/xabbuh/following{/other_user}","gists_url":"https://api.github.com/users/xabbuh/gists{/gist_id}","starred_url":"https://api.github.com/users/xabbuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xabbuh/subscriptions","organizations_url":"https://api.github.com/users/xabbuh/orgs","repos_url":"https://api.github.com/users/xabbuh/repos","events_url":"https://api.github.com/users/xabbuh/events{/privacy}","received_events_url":"https://api.github.com/users/xabbuh/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T23:07:12Z","updated_at":"2015-02-23T23:07:12Z","body":"@ptsavdar `configureOptions()` is not available in Symfony 2.6, but will be part of Symfony 2.7."}}