{"action":"created","issue":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/377","labels_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/377/comments","events_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/377/events","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/377","id":94148133,"number":377,"title":"CRUD-generator follows symfony best practices","user":{"login":"maidmaid","id":4578773,"avatar_url":"https://avatars.githubusercontent.com/u/4578773?v=3","gravatar_id":"","url":"https://api.github.com/users/maidmaid","html_url":"https://github.com/maidmaid","followers_url":"https://api.github.com/users/maidmaid/followers","following_url":"https://api.github.com/users/maidmaid/following{/other_user}","gists_url":"https://api.github.com/users/maidmaid/gists{/gist_id}","starred_url":"https://api.github.com/users/maidmaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maidmaid/subscriptions","organizations_url":"https://api.github.com/users/maidmaid/orgs","repos_url":"https://api.github.com/users/maidmaid/repos","events_url":"https://api.github.com/users/maidmaid/events{/privacy}","received_events_url":"https://api.github.com/users/maidmaid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-07-09T20:44:21Z","updated_at":"2015-09-20T08:17:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/pulls/377","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/377","diff_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/377.diff","patch_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/377.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | no\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | #344\r\n| License       | MIT\r\n| Doc PR        |\r\n\r\nFollow best practices :\r\n- [x] [So it's much simpler to let newAction handle everything.](http://symfony.com/doc/current/best_practices/forms.html#handling-form-submits)\r\n- [x] [Add buttons in the templates, not in the form classes or the controllers.](http://symfony.com/doc/current/best_practices/forms.html#form-button-configuration)\r\n- [x] [Store all your application's templates in ``app/Resources/views/ directory``.](http://symfony.com/doc/current/best_practices/templates.html#template-locations)\r\n- [x] [Rendering the Form](http://symfony.com/doc/current/best_practices/forms.html#rendering-the-form)\r\n- [x] [We recommend using ``$form->isSubmitted()`` in the if statement for clarity.](http://symfony.com/doc/current/best_practices/forms.html#handling-form-submits)\r\n- [x] [Use the ``ParamConverter`` trick to automatically query for Doctrine entities when it's simple and convenient.](http://symfony.com/doc/current/best_practices/controllers.html#using-the-paramconverter)\r\n- [x]  [Use lowercased snake_case for directory and template names.](http://symfony.com/doc/current/best_practices/templates.html#template-locations)\r\n\r\nOthers :\r\n- [x] Use ``redirectToRoute()`` shortcut notation for routing.\r\n\r\nFor see quickly the generated result, click on [this repo](https://github.com/maidmaid/sf-crud) ([controller](https://github.com/maidmaid/sf-crud/blob/master/src/AppBundle/Controller/ArticleController.php), [views](https://github.com/maidmaid/sf-crud/tree/master/app/Resources/views/article), [routing](https://github.com/maidmaid/sf-crud/tree/master/src/AppBundle/Resources/config/routing))."},"comment":{"url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/comments/141757902","html_url":"https://github.com/sensiolabs/SensioGeneratorBundle/pull/377#issuecomment-141757902","issue_url":"https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/issues/377","id":141757902,"user":{"login":"OskarStark","id":995707,"avatar_url":"https://avatars.githubusercontent.com/u/995707?v=3","gravatar_id":"","url":"https://api.github.com/users/OskarStark","html_url":"https://github.com/OskarStark","followers_url":"https://api.github.com/users/OskarStark/followers","following_url":"https://api.github.com/users/OskarStark/following{/other_user}","gists_url":"https://api.github.com/users/OskarStark/gists{/gist_id}","starred_url":"https://api.github.com/users/OskarStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OskarStark/subscriptions","organizations_url":"https://api.github.com/users/OskarStark/orgs","repos_url":"https://api.github.com/users/OskarStark/repos","events_url":"https://api.github.com/users/OskarStark/events{/privacy}","received_events_url":"https://api.github.com/users/OskarStark/received_events","type":"User","site_admin":false},"created_at":"2015-09-20T08:17:10Z","updated_at":"2015-09-20T08:17:10Z","body":"ping @javiereguiluz would like to get this code as soon as possible :)\r\n\r\nthanks again for this huge work @maidmaid "}}