Hey everyone, I've been playing with datamapper for a little while,
and I noticed something today about how belongs_to associations work
that I didn't expect.  I'm changing an attribute on a parent object
from the child object, like this:

child.parent.someattribute = value => value
child.parent.save => true

The problem is, when I call child.parent.reload, the old value is
still in someattribute.  It seems like at the very least, save should
return false when the change doesn't make it to the database.

Here's a pastie with a simple example: http://pastie.org/560681

I'm using dm-core 0.9.11

Is this a bug, or am I misunderstanding how belongs_to associations
should be used?

--Jorge

--~--~---------~--~----~------------~-------~--~----~
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