-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
rc8
I have a many-to-many relationship between Exhibitor and Artwork.
class Exhibitor
...
references_and_referenced_in_many :artworks
end
- create(hash) where hash contains artworks = [ array of ids ] -> success
- update_attributes(hash) where hash contains artworks = [ array of ids, with several new ids ] -> success
- update_attributes(hash) where hash contains artworks = [ array of ids, with removed ids ] -> fail
By fail I mean nothing is removed.
http://groups.google.com/group/mongoid/browse_thread/thread/0b685e1895bb64a6