From: Jason Kirtland Date: Tue, 20 Nov 2007 18:32:01 +0000 (+0000) Subject: Typo fix X-Git-Tag: rel_0_4_2~154 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=56d14df0ebce6055356ea090cffe1b9ee91d592c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Typo fix --- diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 55642fa1e9..1203c287ae 100644 --- a/doc/build/content/mappers.txt +++ b/doc/build/content/mappers.txt @@ -1168,11 +1168,11 @@ A `dict` can be used as a collection, but a keying strategy is needed to map ent mapper(Item, items_table, properties={ # key by column - notes = relation(Note, collection_class=column_mapped_collection(notes_table.c.keyword)) + 'notes': relation(Note, collection_class=column_mapped_collection(notes_table.c.keyword)), # or named attribute - notes2 = relation(Note, collection_class=attribute_mapped_collection('keyword')) + 'notes2': relation(Note, collection_class=attribute_mapped_collection('keyword')), # or any callable - notes3 = relation(Note, collection_class=mapped_collection(lambda entity: entity.a + entity.b)) + 'notes3': relation(Note, collection_class=mapped_collection(lambda entity: entity.a + entity.b)) }) # ...