Kevin, > I modified the gist a little bit to avoid duplicate Roles, and I seem > to get an incorrect result:
You're right, I am seeing those same problems with edge dm-core too. To make it clear, I updated the models so that the name properties are the keys, and the problem now becomes more plain: http://gist.github.com/305809 This nested Hash syntax for queries hasn't actually been introduced officially in the docs because there's still a few issues with m:m associations (like this) to work out. In the meantime going from Role - > User should return the correct results. I've created a ticket to track this issue here: http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets/1201 -- Dan -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.