Welcome Guest, Not a member yet? Register   Sign In
Single Table Inheritance
#5

[eluser]ricklee[/eluser]
I did have ORM in mind actually when I was thinking about Single Table Inheritance (STI) in CI. What I want are difft models that subclass one parent model, but I want them all going to the same table.

In Rails, having the difft models means I can use difft validation filters, etc, while still mapping to the same table. Without using STI, they would have to go to difft tables.

I guess in CI (without ORM) it's not a big deal because you just make the database calls in each individual model and you can send the data wherever you want...


Messages In This Thread
Single Table Inheritance - by El Forum - 12-12-2007, 10:49 PM
Single Table Inheritance - by El Forum - 12-13-2007, 11:18 PM
Single Table Inheritance - by El Forum - 12-14-2007, 06:44 PM
Single Table Inheritance - by El Forum - 12-14-2007, 08:35 PM
Single Table Inheritance - by El Forum - 12-14-2007, 09:34 PM
Single Table Inheritance - by El Forum - 12-14-2007, 09:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB