Load model with a constructer - possible? |
[eluser]Unknown[/eluser]
Hi all, thanks for all the replies. I think the problem was initially I was going down a rails, etc type scenario where typically one object represents 1 row in a table whereas in CI the model is just a front-end facade for the whole table *i think*. I've resorted to returning an array of "row" objects from methods such as "find_by_description" etc as described in the manual which works fine and I'm happy with it, except it does make some of the code more "terse" as a result - but some of that is due to constraints in the language itself. @michael the datamapper looks very interesting - is it for public consumption? |
Messages In This Thread |
Load model with a constructer - possible? - by El Forum - 08-26-2008, 02:42 PM
Load model with a constructer - possible? - by El Forum - 08-27-2008, 01:58 PM
Load model with a constructer - possible? - by El Forum - 08-27-2008, 02:27 PM
Load model with a constructer - possible? - by El Forum - 08-27-2008, 03:08 PM
Load model with a constructer - possible? - by El Forum - 08-27-2008, 11:05 PM
Load model with a constructer - possible? - by El Forum - 08-28-2008, 08:08 AM
Load model with a constructer - possible? - by El Forum - 08-28-2008, 09:58 AM
Load model with a constructer - possible? - by El Forum - 08-28-2008, 12:59 PM
|