Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Polymorphic model
  • Hi guys, I am new and loving the framework! Really extensive and all. Just one quick question:

    I am building a polymorphic model Comments using ORM. For the polymorphic logic I am using two columns: parent_id and parent_type. I am planning to use the conditional features of the relational models to make it all work. Is this any good or should I be looking for another solution?
  • HarroHarro
    Accepted Answer
    We're looking into implementing it into ORM atm, but haven't found a good solution yet.

    Issue is that depending on the type you need to relate to another model, you can not achieve that without serious changes to the model code.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion