]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed "eager=True"
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Jan 2007 22:53:07 +0000 (22:53 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Jan 2007 22:53:07 +0000 (22:53 +0000)
doc/build/content/adv_datamapping.txt

index e206686503b7c4eb7e8f345e48b74ed17b6c3584..c8c8ea784f051da618ef8812c32c18f6e60f6ed5 100644 (file)
@@ -369,7 +369,7 @@ For relations, the "order_by" property can also be specified to all forms of rel
     
     # eager load with ordering - the ORDER BY clauses of parent/child will be organized properly
     mapper = mapper(User, users_table, properties = {
-        'addresses' : relation(mapper(Address, addresses_table), order_by=desc(addresses_table.c.email_address), eager=True)
+        'addresses' : relation(mapper(Address, addresses_table), order_by=desc(addresses_table.c.email_address), lazy=False)
     }, order_by=users_table.c.user_id)
     
 ### Limiting Rows {@name=limits}