Welcome Guest, Not a member yet? Register   Sign In
Model relationships
#6

[eluser]bayowar[/eluser]
I think darkhouse and Colin have a point with join.

If you need all locations in your players array, and vice versa, you could
join both tables with Active Record in each model

This works, if your tables aren't subject to frequent changes or require
abstraction for other reasons.


Messages In This Thread
Model relationships - by El Forum - 01-13-2009, 06:24 PM
Model relationships - by El Forum - 01-13-2009, 10:52 PM
Model relationships - by El Forum - 01-13-2009, 11:06 PM
Model relationships - by El Forum - 01-14-2009, 02:44 AM
Model relationships - by El Forum - 01-14-2009, 04:30 AM
Model relationships - by El Forum - 01-14-2009, 05:36 AM
Model relationships - by El Forum - 01-14-2009, 06:11 AM
Model relationships - by El Forum - 01-14-2009, 06:31 AM
Model relationships - by El Forum - 01-14-2009, 08:23 AM
Model relationships - by El Forum - 01-15-2009, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB