propelorm/Propel2 — Issue #42: [RFC] Buildtime object model
Author: fzaninotto
Created: 2011-11-10 08:25:24+00:00
State: open

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.