Welcome Guest, Not a member yet? Register   Sign In
Joins: Controller or Model?
#5

[eluser]Denarius[/eluser]
Thanks for pointing me to the article. Lets see if I've got the gist of it.

As far as I can see, the Model class in the framework is doing the object-relational mapping as queries return rows of objects based on the fields in the relevant table. In the case of a join though you would need to extend the model with the join query. In my specific case I'm looking at compositions and arrangements of compositions, so in that specific case I would be extending the arrangements model to include the left join query beyond the standard queries as determined implicitly by the Model class in the main library.

Am I on the right track or am I still missing something?

Update: I meant compositions and arrangements in a musical sense rather than compositions in objective framework programming. Should've explained that. :red:


Messages In This Thread
Joins: Controller or Model? - by El Forum - 03-02-2010, 08:50 AM
Joins: Controller or Model? - by El Forum - 03-02-2010, 08:54 AM
Joins: Controller or Model? - by El Forum - 03-02-2010, 10:08 AM
Joins: Controller or Model? - by El Forum - 03-02-2010, 03:12 PM
Joins: Controller or Model? - by El Forum - 03-03-2010, 12:45 PM
Joins: Controller or Model? - by El Forum - 03-03-2010, 01:03 PM
Joins: Controller or Model? - by El Forum - 03-03-2010, 05:28 PM
Joins: Controller or Model? - by El Forum - 03-04-2010, 11:01 AM
Joins: Controller or Model? - by El Forum - 03-04-2010, 11:13 AM
Joins: Controller or Model? - by El Forum - 03-04-2010, 05:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB