Welcome Guest, Not a member yet? Register   Sign In
Accesning a model in a model (bad practice?)
#7

[eluser]ennis[/eluser]
Yeah thanks for all the replys, just went through some more code that ihavent done and well will be suing some joins and then calling some models in the controller..

Right now the code calls the clients model model that calls the cliens_relation model that then call the client model to get tclietns pair them with tickets from the ticket model then calls the tick model to get the indivudal ticks for the ticket all this is run ever time I call getClients hehe so yeah not good Smile

So will refacture and break it up so that tickets are only pulled out when needed.


Messages In This Thread
Accesning a model in a model (bad practice?) - by El Forum - 10-12-2009, 08:32 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-12-2009, 09:12 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-13-2009, 12:50 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-13-2009, 01:40 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-13-2009, 01:47 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-13-2009, 01:58 AM
Accesning a model in a model (bad practice?) - by El Forum - 10-13-2009, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB