EllisLab text mark
Advanced Search
     
datamapper update add remove problem
Posted: 06 October 2012 07:54 PM   [ Ignore ]
Joined: 2012-10-06
4 posts

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)

 
Posted: 07 October 2012 09:00 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2012-10-06
4 posts

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