Welcome Guest, Not a member yet? Register   Sign In
model for two tables
#6

[eluser]jared4444[/eluser]
[quote author="waldmeister" date="1262576908"]You can use as many tables per model as you like. True, many out there try to use only 1 table per model, but seriously: Why?

Most of the time 1 table depends on the other (like in your case) and then you have to mix them anyways. I usually have 1 model per controller that deals with whatever tables the controller needs. If there happens to be the same function in multiple models, I create a common model that contains the functions that otherwise would be duplicate.[/quote]

Thanks, this is the approach I will take. I think we posted our comments at the same time, which is why I missed your response. Thanks!


Messages In This Thread
model for two tables - by El Forum - 01-03-2010, 02:14 PM
model for two tables - by El Forum - 01-03-2010, 03:44 PM
model for two tables - by El Forum - 01-03-2010, 03:48 PM
model for two tables - by El Forum - 01-03-2010, 03:49 PM
model for two tables - by El Forum - 01-03-2010, 03:57 PM
model for two tables - by El Forum - 01-03-2010, 03:59 PM
model for two tables - by El Forum - 01-03-2010, 04:02 PM
model for two tables - by El Forum - 01-03-2010, 04:06 PM
model for two tables - by El Forum - 01-11-2010, 11:43 PM
model for two tables - by El Forum - 01-12-2010, 02:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB