{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/463","repository_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle","labels_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/463/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/463/events","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/issues/463","id":124987035,"number":463,"title":"Form Generator don't use FieldType::class","user":{"login":"roromix","id":16560617,"avatar_url":"https://avatars.githubusercontent.com/u/16560617?v=3","gravatar_id":"","url":"https://api.github.com/users/roromix","html_url":"https://github.com/roromix","followers_url":"https://api.github.com/users/roromix/followers","following_url":"https://api.github.com/users/roromix/following{/other_user}","gists_url":"https://api.github.com/users/roromix/gists{/gist_id}","starred_url":"https://api.github.com/users/roromix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roromix/subscriptions","organizations_url":"https://api.github.com/users/roromix/orgs","repos_url":"https://api.github.com/users/roromix/repos","events_url":"https://api.github.com/users/roromix/events{/privacy}","received_events_url":"https://api.github.com/users/roromix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/labels/hasPR","name":"hasPR","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-05T15:18:54Z","updated_at":"2016-06-23T18:11:01Z","closed_at":null,"body":"When generate a Form and the Entity contain a field type in `[date,time,datetime]`, the FormType generated don't use `FieldType::class`.\r\n\r\n```php\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        $builder\r\n            ->add('author')\r\n            ->add('content')\r\n            ->add('date', 'datetime')\r\n            ->add('advert')\r\n        ;\r\n    }\r\n```\r\n\r\nSince Symfony 2.8\r\n\r\n```php\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        $builder\r\n            ->add('author')\r\n            ->add('content')\r\n            ->add('date', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType')\r\n            ->add('advert')\r\n        ;\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/comments/228134845","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/issues/463#issuecomment-228134845","issue_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/463","id":228134845,"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":"2016-06-23T18:11:01Z","updated_at":"2016-06-23T18:11:01Z","body":"@maerten The related pull request (#464) needs to be finished. Maybe you want to take over?"}}
{"actor":{"display_login":"xabbuh"}}