diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-11-20 18:32:01 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-11-20 18:32:01 +0000 |
commit | 56d14df0ebce6055356ea090cffe1b9ee91d592c (patch) | |
tree | e237e1c33863a35f64bdf181ba8eca7dcf746aa3 | |
parent | 6fa74de09da864c8f9a1d9db5cb7d8d4132ad6cd (diff) | |
download | sqlalchemy-56d14df0ebce6055356ea090cffe1b9ee91d592c.tar.gz |
Typo fix
-rw-r--r-- | doc/build/content/mappers.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt index 55642fa1e..1203c287a 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)) }) # ... |