Thank you so much, Michael! It makes sense. I just tried it out, and it
works correctly. I should have asked this question sooner. I would have
saved myself a lot of wasted effort.

On Sat, Nov 6, 2010 at 2:28 PM, Michael Bayer <[email protected]>wrote:

>
> On Nov 6, 2010, at 1:26 PM, lavoisier wrote:
>
> >
> > imgtag_assoc = schema.Table('imgtag_assoc', schema.MetaData(),
> >    schema.Column('image_id', types.Integer,
> > schema.ForeignKey('images.id')),
> >    schema.Column('tag_id', types.Integer,
> > schema.ForeignKey('tags.id'))
> > )
> >
> >
> > Does anyone have any thoughts on what I'm doing wrong? I looked at the
> > SQLAlchemy website, and this is how they showed to implement a many-to-
> > many using the declarative base.
> >
>
> your association table is missing the usage of Base.metadata illustrated in
> the declarative example at
> http://www.sqlalchemy.org/docs/orm/relationships.html#many-to-many .
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<sqlalchemy%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/sqlalchemy?hl=en.
>
>


-- 
    .-.
    /v\    L   I   N   U   X
   // \\  >Phear the Penguin<
  /(   )\
   ^^-^^

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

Reply via email to