{"action":"closed","issue":{"url":"https://api.github.com/repos/mremi/ContactBundle/issues/43","repository_url":"https://api.github.com/repos/mremi/ContactBundle","labels_url":"https://api.github.com/repos/mremi/ContactBundle/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/mremi/ContactBundle/issues/43/comments","events_url":"https://api.github.com/repos/mremi/ContactBundle/issues/43/events","html_url":"https://github.com/mremi/ContactBundle/issues/43","id":178567975,"number":43,"title":"Surcharger Type pour enlever un champ","user":{"login":"razbounak","id":8436532,"avatar_url":"https://avatars.githubusercontent.com/u/8436532?v=3","gravatar_id":"","url":"https://api.github.com/users/razbounak","html_url":"https://github.com/razbounak","followers_url":"https://api.github.com/users/razbounak/followers","following_url":"https://api.github.com/users/razbounak/following{/other_user}","gists_url":"https://api.github.com/users/razbounak/gists{/gist_id}","starred_url":"https://api.github.com/users/razbounak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razbounak/subscriptions","organizations_url":"https://api.github.com/users/razbounak/orgs","repos_url":"https://api.github.com/users/razbounak/repos","events_url":"https://api.github.com/users/razbounak/events{/privacy}","received_events_url":"https://api.github.com/users/razbounak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-22T09:59:50Z","updated_at":"2016-09-26T18:08:13Z","closed_at":"2016-09-26T18:08:13Z","body":"Hi remi, je I would like remove the fields \"title\" of your bundle in override the Type but it doesn't works and I'm blocked since few days\r\n\r\n```yaml\r\n# app/config/config.yml\r\nmremi_contact:\r\n    store_data:            false\r\n    contact_class:         Mremi\\ContactBundle\\Model\\Contact\r\n\r\n    form:\r\n        type:              mb_contact\r\n        name:              contact_form\r\n        validation_groups: [Default]\r\n        subject_provider:  mremi_contact.subject_provider.noop\r\n\r\n    email:\r\n        mailer:            mremi_contact.mailer.twig_swift\r\n        from:              [ address: thomas@nnn.nnn]\r\n        to:                [ address: thomas@nnn.nnn]\r\n        template:          MremiContactBundle:Contact:email.txt.twig\r\n```\r\n\r\n```php\r\n// src/MB/ContactBundle/MBContactBundle\r\n\r\n<?php\r\n\r\nnamespace MB\\ContactBundle;\r\n\r\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\r\n\r\nclass MBContactBundle extends Bundle\r\n{\r\n    public function getParent()\r\n    {\r\n        return 'MremiContactBundle';\r\n    }\r\n}\r\n```\r\n\r\n```php\r\n// src/MB/ContactBundle/Form/Type/ContactType.php\r\n\r\n<?php\r\n\r\nnamespace MB\\ContactBundle\\Form\\Type;\r\n\r\nuse Mremi\\ContactBundle\\Form\\Type\\ContactType as ContactTypeMremi;\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\nuse Symfony\\Component\\OptionsResolver\\OptionsResolverInterface;\r\n\r\nclass ContactType extends ContactTypeMremi\r\n{\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        parent::buildForm($builder, $options);\r\n\r\n        $builder->remove('title');\r\n    }\r\n\r\n    public function getName()\r\n    {\r\n        return 'mb_contact';\r\n    }\r\n}\r\n```\r\n\r\nThank you for helping me !"}}
{"actor":{"display_login":"mremi"}}