• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
datamapper update add remove problem

#1
[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)

#2
[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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.