From: Mike Bayer Date: Mon, 26 May 2008 18:35:24 +0000 (+0000) Subject: a comment indicating why we can't raise an error for relation(Foo, uselist=False... X-Git-Tag: rel_0_5beta1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae9297bd1857792b097b110de74b119c106f0162;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git a comment indicating why we can't raise an error for relation(Foo, uselist=False, order_by=something) --- diff --git a/test/orm/unitofwork.py b/test/orm/unitofwork.py index 649754601c..7beafb58f5 100644 --- a/test/orm/unitofwork.py +++ b/test/orm/unitofwork.py @@ -1854,7 +1854,9 @@ class ManyToManyTest(_fixtures.FixtureTest): keyword=relation(mapper(Keyword, keywords, non_primary=True), lazy=False, uselist=False, - order_by=keywords.c.name))) + order_by=keywords.c.name # note here is a valid place where order_by can be used + ))) # on a scalar relation(); to determine eager ordering of + # the parent object within its collection. mapper(Item, items, properties=dict( keywords=relation(IKAssociation, lazy=False)))