Thanks for the advice. On 4 dec, 13:39, Nicolas Hurman <mwk...@gmail.com> wrote: > Hi, > > Your structure makes sense. The point with Sf2 is that there isn't one > structure you have to follow - just do what you think is best. About the > Doctrine entities, you could store them in a separate bundle, or in you > "main" one - basically any of your three bundles. I would personnaly create > another bundle to store application-level Entities, but really the choice is > up to you. A third option would be to be to put all your controllers, > entities in one bundle. > > Just make sure you are coherent in your choices - choose one structure and > try to stick to it. > > > > > > > > On Thu, Dec 2, 2010 at 11:26 AM, Arjen <arje...@gmail.com> wrote: > > Hi, > > > I'm trying to get to know the SF2 framework, and have some questions > > about structuring your project. Suppose I'm creating some kind of > > website where I sell books, consisting of a frontend, backend and > > possibly an API to query new additions to the store or get > > information about authors. > > > I would create the following bundles: > > > * Application\BookStore\FrontendBundle > > * Application\BookStore\BackendBundle > > * Application\BookStore\ApiBundle > > > Does this make sense? > > > Now, in which bundle should I store the Doctrine entity classes? > > Should I create another bundle (ModelBundle) containing the entity > > classes, but without controllers? It makes no sense to me to put the > > entity classes in one of the bundles above, because they don't really > > belong to any of these bundles. > > > I read through the documentation, but could not find an answer there. > > > Any help would be great, thanks! > > > -- > > If you want to report a vulnerability issue on symfony, please send it to > > security at symfony-project.com > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@goog > > legroups.com> > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en
-- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en