08-20-2008, 06:08 PM
[eluser]julien.1486[/eluser]
Self-reply :
Finally I was in a wrong way.
I make a Model for each table in my database, except for the one including a foreign key (well, I just have two tables for the moment
).
I've added private members to my class and a array named 'myFeatures'.
When I retrieves the datas from the database I fill 'myFeature' with the result of a query build by using $this->db->get_where(....).
This is described in this topic (thanks to the authors and to the helpers) :
http://ellislab.com/forums/viewthread/88156/
I look for this all the day !
Self-reply :
Finally I was in a wrong way.
I make a Model for each table in my database, except for the one including a foreign key (well, I just have two tables for the moment

I've added private members to my class and a array named 'myFeatures'.
When I retrieves the datas from the database I fill 'myFeature' with the result of a query build by using $this->db->get_where(....).
This is described in this topic (thanks to the authors and to the helpers) :
http://ellislab.com/forums/viewthread/88156/
I look for this all the day !