Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Orm
ORM Class table inheritance and polymorphic relations
onema
January 2013
Can this ORM do polymorphic relations using class table inheritance setup?
a typical case of this would be
employee: name
-> manager
-> engineer
I know Doctrine and SQLAlchemy can do this
http://docs.doctrine-project.org/en/2.0.x/reference/inheritance-mapping.html
http://docs.sqlalchemy.org/en/latest/orm/inheritance.html
But I haven't seen anything so far for Fuel ORM.
Thank you,
Harro
January 2013
Accepted Answer
No, you'll need an ORM that uses the Datamapper pattern for that, with an Activerecord pattern based ORM it's very difficult to implement.
It's on our minds, but not on the roadmap atm.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
January 2013