datamapper update add remove problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: datamapper update add remove problem (/showthread.php?tid=55033) |
datamapper update add remove problem - El Forum - 10-06-2012 [eluser]cloude[/eluser] YO I have tried a few things i've found but cant seem to get it to work i have 2 tables with many to many asd: id asd_value 1 str 2 str2 dsa: id dsa_value 1 rts 2 rts2 asd_dsa: id asd_id dsa_id the values in asd and dsa should already be able to exist and i want to add and remove relations in asd_dsa i dont want to create a class Asd_dsa with var $has_one = array('asd', 'dsa'); while Asd and Dsa var $has_many = array('asd_dsa'); (was finally allowed to edit the title) datamapper update add remove problem - El Forum - 10-07-2012 [eluser]cloude[/eluser] I'll take the silence as there is no good way to do it. will just have to use the Asd_dsa class to update/add/remove relations between asd and dsa |