-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Buildtime object model #42
Comments
Can we create a new Propel\Mapping namespace containing classes that allow to map the model for Buildtime and Runtime? |
@hhamon: No thrilled about this idea. The buildtime model must be very detailed, the runtime model must be very fast. These need to be different classes. |
Ok I didn't know there were so much differences between the two models ;) |
Ok, I'm fine with that. Will we duplicate information or it's really different ? Except granularity, I'm not sure information are so different. I agree the need to have different classes but we may introduce the Or maybe I didn't get your sentence "something like the runtime Map classes, but more intelligent". I'm fine with that anyway, it will be a first step in the refactoring of builders. |
Let's bootstrap these classes for the builder needs, to see what's needed 2011/11/10 William DURAND <
|
Yeah, totally needed. |
I will close these stale and old tickets. |
The classes under the Generator/Model/ directory help to model the relational schema. The problem is that at buildtime, there is no model of the object-oriented domain. The code necessary to generate ActiveRecord, TableMap, RelationMap, is all inside Relational classdes - or worse, builder classes.
I suggest that we introduce an object-oriented view of the model at buildtime - something like the runtime
Map
classes, but more intelligent - and to make these classes the primary data for PHP builders. SQL builders can keep using relational models, but PHP builders need a central place where they can look for a reference of the Object model.The text was updated successfully, but these errors were encountered: