![]() |
Datamapper problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Datamapper problem (/showthread.php?tid=60759) |
Datamapper problem - El Forum - 06-23-2014 [eluser]hot_sauce[/eluser] Hi, i have 3 tables: categories,products,categories_products categories has many products products has many categories Code: categories I want to create a new category and create automatically categories_products associations but it doesn't works my controller Code: $p = new Product(); I don’t understand… I have no idea how to do it ![]() Any help would be really appreciated. Thanks! Datamapper problem - El Forum - 06-23-2014 [eluser]Damir Sivic[/eluser] Code: $p = new Product(); Datamapper problem - El Forum - 06-24-2014 [eluser]hot_sauce[/eluser] Code: /****** Get Data ******/ Anothe way to load and save join table fields? |