Hi,

I just recently started using DM and I'm unclear on how one can/should 
manipulate data in join tables. Using the photo, tag, tagging example (see 
below) -- how can I using DM add, change, or delete data from the "tagging" 
table? 

class Photo
  include DataMapper::Resource

  property :id, Serial

  has n, :taggings
  has n, :tags, :through => :taggingsend
class Tag
  include DataMapper::Resource

  property :id, Serial

  has n, :taggings
  has n, :photos, :through => :taggingsend
class Tagging
  include DataMapper::Resource

  belongs_to :tag,   :key => true
  belongs_to :photo, :key => trueend


Thanks.

-Ari

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to datamapper+unsubscr...@googlegroups.com.
To post to this group, send email to datamapper@googlegroups.com.
Visit this group at http://groups.google.com/group/datamapper?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to