You need to set up an intermediate class and use AssociationProxy. See
this thread for example:
http://is.gd/u8mx



On Apr 23, 10:11 am, Philipp <[email protected]> wrote:
> Hi,
> i have a problem with a ManyToMany relation with elixir.
>
> Is it possible to put an attribute into an association-table of a
> ManyToMany relation,
> without building a class for that table.
>
> Here is an example for that problem:
>
> class A(Entity):
>
>     a1 = Field(Integer, primary_key=True)
>     a2 = ManyToMany('B', tablename='A_B')
>
> class B(Entity):
>
>     b1 = Field(Integer, primary_key=True)
>     b2 = ManyToMany('A', tablename='A_B')
>
> Is there a way to put an attribute of "type" into the table "A_B"?
> How i have to do it?
> Is it even possible?
>
> Best regards
> Philipp
--~--~---------~--~----~------------~-------~--~----~
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