{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/dev-kit/issues/397","repository_url":"https://api.github.com/repos/sonata-project/dev-kit","labels_url":"https://api.github.com/repos/sonata-project/dev-kit/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/dev-kit/issues/397/comments","events_url":"https://api.github.com/repos/sonata-project/dev-kit/issues/397/events","html_url":"https://github.com/sonata-project/dev-kit/issues/397","id":300772745,"number":397,"title":"[RFC] Structure of Flex-recipe for sonata-project bundles","user":{"login":"covex-nn","id":110878,"avatar_url":"https://avatars0.githubusercontent.com/u/110878?v=4","gravatar_id":"","url":"https://api.github.com/users/covex-nn","html_url":"https://github.com/covex-nn","followers_url":"https://api.github.com/users/covex-nn/followers","following_url":"https://api.github.com/users/covex-nn/following{/other_user}","gists_url":"https://api.github.com/users/covex-nn/gists{/gist_id}","starred_url":"https://api.github.com/users/covex-nn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/covex-nn/subscriptions","organizations_url":"https://api.github.com/users/covex-nn/orgs","repos_url":"https://api.github.com/users/covex-nn/repos","events_url":"https://api.github.com/users/covex-nn/events{/privacy}","received_events_url":"https://api.github.com/users/covex-nn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-27T20:01:26Z","updated_at":"2018-03-22T08:04:31Z","closed_at":null,"author_association":"NONE","body":"Several sonata-project bundles in their \"Installation\" chapter of documentation has instruction how to\r\ngenerate the correct entities via `sonata:easy-extends:generate` command.\r\n\r\nAs a result, for example for NotificationBundle, there will be generated one `Entity` class and two .xml files with metadata configuration (for doctrine orm mapping and jms serializer). For MediaBundle there will be generated 2 classes in `Document`, 3 classes in `Entity` and 6 classes in `PHPCR` directory + 8 .xml files for doctrine orm and 6 .xml files for jms serializer.\r\n\r\nI suggest to include all these files into Flex-recipe with bundle configuration, like i did it for NotificationBundle in https://github.com/symfony/recipes-contrib/pull/302. To create recipe files i ran `sonata:easy-extends:generate` command, updated classes namespaces and moved .xml file to another directory.\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/sonata-project/dev-kit/issues/comments/375210913","html_url":"https://github.com/sonata-project/dev-kit/issues/397#issuecomment-375210913","issue_url":"https://api.github.com/repos/sonata-project/dev-kit/issues/397","id":375210913,"user":{"login":"Xymanek","id":2865341,"avatar_url":"https://avatars3.githubusercontent.com/u/2865341?v=4","gravatar_id":"","url":"https://api.github.com/users/Xymanek","html_url":"https://github.com/Xymanek","followers_url":"https://api.github.com/users/Xymanek/followers","following_url":"https://api.github.com/users/Xymanek/following{/other_user}","gists_url":"https://api.github.com/users/Xymanek/gists{/gist_id}","starred_url":"https://api.github.com/users/Xymanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xymanek/subscriptions","organizations_url":"https://api.github.com/users/Xymanek/orgs","repos_url":"https://api.github.com/users/Xymanek/repos","events_url":"https://api.github.com/users/Xymanek/events{/privacy}","received_events_url":"https://api.github.com/users/Xymanek/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T08:04:31Z","updated_at":"2018-03-22T08:04:31Z","author_association":"NONE","body":"While working on sandbox, I noticed that latest branch (before I started working, 2.4-develop) didn't have any of the `src/Application/` folders and instead has a single `AppBundle` which contains all entities, mappings, etc. Some links:\r\n\r\n- [Entities](https://github.com/sonata-project/sandbox/tree/bd8eeab5ddda35041b96a7b41a37aa1b3bddc798/src/AppBundle/Entity)\r\n- [Mappings](https://github.com/sonata-project/sandbox/tree/bd8eeab5ddda35041b96a7b41a37aa1b3bddc798/src/AppBundle/Resources/config/doctrine)\r\n- [`MediaBundle` config with class overrides](https://github.com/sonata-project/sandbox/blob/bd8eeab5ddda35041b96a7b41a37aa1b3bddc798/app/config/sonata/sonata_media.yml#L5-L9)\r\n\r\nMaybe this can be used as base/inspiration for flex recipes?"}}
{"actor":{"display_login":"Xymanek"}}