On 5/6/08, Michael Bayer <[EMAIL PROTECTED]> wrote: > > > > mapper(WordpressPost, wp_posts_tbl, properties={ > > 'categories': relation(WordpressTaxonomy, primaryjoin= > > and_(wp_terms_taxonomy_tbl.c.taxonomy=='category', > > > > wp_term_relationships_tbl > > .c.term_taxonomy_id==wp_terms_taxonomy_tbl.c.term_taxonomy_id)), > > }, foreign_keys=[wp_terms_taxonomy_tbl.c.term_taxonomy_id]) > > > > > > foreign_keys goes inside of relation().
Thanks. Then I think this is a typo here: http://www.sqlalchemy.org/docs/04/mappers.html#advdatamapping_relation_customjoin_fks Max. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---