From 56d14df0ebce6055356ea090cffe1b9ee91d592c Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 20 Nov 2007 18:32:01 +0000 Subject: [PATCH] Typo fix --- doc/build/content/mappers.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) }) # ... -- 2.47.3