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 sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to