4 ms·
In single table inhertance, any leaf node from the inheritance graph cannot solely contain a relation to another object. It has to be on the abstract base or t
by smithjchris 17y ago
In single table inhertance, any leaf node from the inheritance graph cannot solely contain a relation to another object. It has to be on the abstract base or the ORM dies when building inserts for other leaf nodes. That leaves you to implement any business constraints on the model, but there is no model validation so it gets shifted into the controllers (or views as they call them).
Not overly good.
- ubernostrum 17y agoPerhaps I'm misunderstanding you, but I regularly use abstract classes with subclasses which add relationships to other things, and I've not seen this problem.
- smithjchris 17y agoI'll write a test case and report it at some point. It's on my TODO. Also it's not been tried against 1.1 yet.