Hi Just a though I've had a note to post about for ages.
If you've got Parent and Child models, where "Parent has n :children", and you call Child#destroy on a Child in the Parent's collection, should the Child be removed from the collection? I'm thinking something like this: child = Child.new parent.children << child parent.children.include?(child) # => true parent.save child.destroy parent.children.include?(child) # => false Is this desirable behaviour? It's something I've run into, but not something I've immediately felt strongly one way or the other about. Is it worth a ticket? 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 -~----------~----~----~----~------~----~------~--~---
