{"action":"closed","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/17381","labels_url":"https://api.github.com/repos/symfony/symfony/issues/17381/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/17381/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/17381/events","html_url":"https://github.com/symfony/symfony/issues/17381","id":126735769,"number":17381,"title":"FORMS -> CollectionType bug ?","user":{"login":"poolerMF","id":4276289,"avatar_url":"https://avatars.githubusercontent.com/u/4276289?v=3","gravatar_id":"","url":"https://api.github.com/users/poolerMF","html_url":"https://github.com/poolerMF","followers_url":"https://api.github.com/users/poolerMF/followers","following_url":"https://api.github.com/users/poolerMF/following{/other_user}","gists_url":"https://api.github.com/users/poolerMF/gists{/gist_id}","starred_url":"https://api.github.com/users/poolerMF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poolerMF/subscriptions","organizations_url":"https://api.github.com/users/poolerMF/orgs","repos_url":"https://api.github.com/users/poolerMF/repos","events_url":"https://api.github.com/users/poolerMF/events{/privacy}","received_events_url":"https://api.github.com/users/poolerMF/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T19:57:54Z","updated_at":"2016-01-14T20:01:20Z","closed_at":"2016-01-14T20:01:20Z","body":"when using SF3:\r\n\r\nGroupFormType:\r\n\r\n    $builder\r\n        ->add('code', TextType::class)\r\n        ->add('roles', CollectionType::class, [\r\n            'entry_type' => RoleFormType::class,\r\n            'entry_options' => [\r\n                'data_class' => '...Entity\\Role'\r\n            ]\r\n        ]);\r\n    \r\nform.roles shows correctly ...\r\n\r\n\r\nwhen I remove entry_options and in form **RoleFormType** in function **configureOptions** set:\r\n\r\n    $resolver->setDefaults(['data_class' => '...Entity\\Role'])\r\n\r\nthen form.roles do not show\r\n\r\nin Symfony 2.8 this works great"}}