Welcome Guest, Not a member yet? Register   Sign In
Model Bouncing - Best Practices?
#5

[eluser]Nick_MyShuitings[/eluser]
[quote author="darioism" date="1283617090"]Thanks for the reply.

I was hoping there was a more complex way of detecting this recursion or an advanced programming technique that I don't know about yet for architecting a solution. If not, the boolean approach is of course a good solution, but I like to have as few switches as possible in my code for simplicity. Maybe I'm overthinking it?[/quote]

From the way you are thinking, it sounds like an ORM is what you are looking for. There are a few written specifically for CI, as well as wikis like this one regarding Doctrine: http://codeigniter.com/wiki/Using_Doctri...e_Igniter/.

If you want automatic mapping between objects from the database, then you are talking ORM.


Messages In This Thread
Model Bouncing - Best Practices? - by El Forum - 09-03-2010, 06:59 PM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 04:14 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 05:18 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 05:41 AM
Model Bouncing - Best Practices? - by El Forum - 09-04-2010, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB