Not for the url, as routing can show what ever url you want. Its more of a house keeping design thing. Lets say you have three areas of your web site: hotels, apartments and availability each area may have many db tables (i.e. models) that support it. It would be convenient to have a module for each of these and put your related models there. I am also thinking that this one to one relationship for module to model to generated crud would not always fit for actions and templates that support complicated forms, like merged forms for instance.
So I am wondering if this one module to one model is the accepted way to build a symfony app? I have been coding in Symfony before version one and back then it seemed arbitrary as to what models you put into your modules. More of a design decision. Thanks! On Sun, Feb 28, 2010 at 7:10 AM, Tom Ptacnik <to...@tomor.cz> wrote: > Why do you want to add another model to an existing module? Because of > the URL? > > On 27 ún, 08:05, Roland Cruse <cruses...@gmail.com> wrote: >> Hi >> >> symfony doctrine-generate-crud seems to build a module for each model >> (database table) with actions edit, delete, create etc.Using this task >> you can not add another model to the same module. The task will over >> write the edit, delete etc. actions. I see no options in the task for >> prefixing action names, which stop the crud functions from being >> overwritten. Or would that mess things up for a routing collection >> come form submission time? >> >> Is there no way around this, using the crud generator? >> >> Or does conventional symfony wisdom say each model must have its own module? >> >> Any tips or hints would be greatly appreciated. >> >> signed: confused. > > -- > 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 > -- 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