From 85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 12 Feb 2008 16:45:39 +0000 Subject: [PATCH] add pk cols to assocaition table --- doc/build/content/mappers.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 4915457f0d..41cae69666 100644 --- a/doc/build/content/mappers.txt +++ b/doc/build/content/mappers.txt @@ -813,8 +813,8 @@ The association object pattern is a variant on many-to-many: it specifically is Column('id', Integer, primary_key=True)) association_table = Table('association', metadata, - Column('left_id', Integer, ForeignKey('left.id')), - Column('right_id', Integer, ForeignKey('right.id')), + Column('left_id', Integer, ForeignKey('left.id'), primary_key=True), + Column('right_id', Integer, ForeignKey('right.id'), primary_key=True), Column('data', String(50)) ) -- 2.47.3