Hi

I had the same problem, but I was using a self-referencing many-to-
many relationship. The example in the documentation for this worked
pretty well for me during 0.9.11 but totally crashed and burned in
0.10.0. I can't point to the link now since the datamapper.org site is
apparently gone :( I have since gone back to 0.9.11, now just waiting
for documentation to surface on how I can do this.

I do think some of the changes makes lots of sense in 0.10 but without
documentation on how to make things work again I can't afford to stop
my projects and figure it out bit by bit.



On Sep 25, 2:44 pm, Jacques Crocker <[email protected]> wrote:
> Ah ok, that makes sense. I do think throwing a specific exception here
> would be a good idea to make things a bit more clear to people who run
> into this.
>
> Thanks
>
> On Sep 24, 11:41 am, "Dan Kubb (dkubb)" <[email protected]> wrote:
>
> > Jacques,
>
> > > Is :child_key broken on 0.10, or was I just using it wrong? Seems like
> > > this should be valid syntax for the through relationship (though
> > > redundant):
>
> > It's actually not a valid argument to a m:m relationship, and I should
> > probably throw an exception when it is provided.
>
> > The :through and :via options are what specify the relationships the
> > m:m relationship "piggybacks" on top of, and they have their own
> > child_key properties.  Since a m:m relationships really is a
> > composition of 2 (or more) relationships, I wasn't sure which of them
> > the :child_key option would actually apply to.
>
> > --
>
> > Dan
> > (dkubb)

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