Maybe this change could be put in Doctrine 1.1. If we had that configuration it would make the change BC. The idea behind the packages was to group code, but we also added the feature to have the middle "package" class so when you have a Doctrine model "package", it includes the yaml schema files with the "package:" parameter and the generated Package* classes with the package code for each model. Then when you import the package in to your project, the top level models inherit from the package models and the package models inherit the base generated models.
So I think you are right, maybe we can add an option to simply disable the middle class for individual package definitions? - Jon On Mon, Oct 20, 2008 at 3:24 AM, Bernhard Schussek <[EMAIL PROTECTED]>wrote: > > We already talked about this at SymfonyCamp, and I would like to see > this as well. > > I know that the package definition is meant for plugins, but I think > the name is not chosen very well. Java uses the term as well as > Propel, but both use it to group code, not to do some generation > magic. As you can see in this thread again, people expect different > things from a "package" (intuitively). > > IMO, the feature for plugins should be renamed to "plugin", which > would be a fitting name. The second option would be to use "package" > still, but having additional options "generateMiddleClass" and > "middleClassName" that can be set and result in the current behaviour. > > What do you think about this? > > > Bernhard > > > > -- Jonathan H. Wage Open Source Software Developer & Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
