Hi,

Before posting a bug report I thought that I would check with you guys
to see if there is something I'm overlooking. I'm having some trouble
when adding items to a collection and then updating, e.g.

foo.bars << Bar.new(:bar_stuff => 2)
foo.bars << Bar.new(:bar_stuff => 4)

foo.update_attributes(:foo_stuff => 5)

leads to the following mysql query:

INSERT INTO `db_profile_properties` (`property_id`, `profile_id`)
VALUES (('1', '2'), 3);

which fails with

ERROR 1241 (21000): Operand should contain 1 column(s)

One wierd aspect is that when I try to reproduce this in irb it
doesn't fail because the above statement isn't created, instead dm
creates several INSERTS.

Any suggestions to why this might happend?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to