The logic in DataObjectsAdapter is definitely back-to-front, but changing it seems to break other things. From memory it was changed to be back-to-front at some point, presumably to "fix" some other obscure bug.
Hopefully somebody takes a look at this, as we'll certainly also run into it.
In the interim, you may wish to try using an explicit join model (i.e. has n, :sentence_words on each model, then has n, :sentences, :through => :sentence_words).
> --
> You received this message because you are subscribed to the Google Groups "DataMapper" group.
> To post to this group, send email to datam...@googlegroups.com.
> To unsubscribe from this group, send email to datamapper+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
>