Thanks, that was just the reference I needed.

On Apr 7, 1:37 pm, "Diez B. Roggisch" <[email protected]> wrote:
> On Tuesday 07 April 2009 13:55:07 [email protected] wrote:
>
>
>
> > Hi,
>
> > I'm a first time Elixir user, and I like it a lot.  I've just
> > represented some data in a ManyToMany relation:
>
> > E.g,
>
> > class Foo(Entity):
> >     using_options(tablename='foo_item')
> >     id = Field(Text, primary_key=True)
> >     data = Field(Text)
> >     bars = ManyToMany("Bar",  tablename="FooByBar")
>
> > class Bar(Entity):
> >     using_options(tablename='bar_item')
> >     name = Field(Text, primary_key=True)
> >     other_stuff = Field(Text)
> >     foos = ManyToMany("Foo",  tablename="FooByBar")
>
> > my question is what do I do query the association table FooByBar?
> > E.g, supposing I want to find out the count of relations, how does one
> > do this with the provided APIs?  Do I have to use literal sql?
>
> This is a FAQ:
>
> http://elixir.ematia.de/trac/wiki/FAQ#HowdoIgetatthetablegeneratedbya...
>
> Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to