On 27 Jul 2009, at 20:47, Jorge wrote:
> 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? Hi Jorge Is your problem similar to the issue I found? http://datamapper.lighthouseapp.com/projects/20609/tickets/960-after-reconnecting-with-another-repository-block-saving-parent-resources-no-longer-propagate-to-children Maybe not, as I thought it was a 0.10 regression, but maybe there is something like it going wrong in 0.9? Ashley -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran http://aviewfromafar.net/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
