Welcome Guest, Not a member yet? Register   Sign In
Creating multiple instances of a model
#2

The first example is never a good idea. If a model is already loaded, it will not load again.
The second example isn't a good idea either. It makes your code unnecessarily complex.

Please, explain what you are trying to do. It appears to me that you want to fetch a list of customers from your database, is that correct?
Reply


Messages In This Thread
RE: Creating multiple instances of a model - by Wouter60 - 04-28-2016, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB