I figured it out.

The BarFoo table does not exist automatically.

However as soon as you do:

Bar.first.foos

then the BarFoo table comes into existence and can be accessed.

-g

(PS.. thanks for having ArticleAuthor in the many_to_many spec..
helped me crack this!)


On Sun, Oct 11, 2009 at 9:51 AM, Gary Yngve <[email protected]> wrote:
> In the older DM, if I had
>
> class Bar
>  ...
>  has n, :foos, :through => Resource
> end
>
> I could do
> BarFoo.all and see that whole join table.
>
> That functionality does not seem to be in the new DM.
>
> Is there a way to access it without making an explicit BarFoo class?
>
> -Gary

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