- some deeper error checking when compiling relations, to detect an ambiguous "primaryjoin"
in the case that both sides of the relationship have foreign key references in the primary
join condition
+ - fix to "proxy=True" behavior on synonym()
- fixed bug where delete-orphan basically didn't work with many-to-many relationships [ticket:427],
backref presence generally hid the symptom
- added a mutex to the mapper compilation step. ive been reluctant to add any kind
class SynonymProp(object):
def __set__(s, obj, value):
setattr(obj, self.name, value)
- self.set(None, obj, value)
def __delete__(s, obj):
delattr(obj, self.name)
def __get__(s, obj, owner):
u = sess.query(User).get_by(uname='jack')
self.assert_result(u.adlist, Address, *(user_address_result[0]['addresses'][1]))
+
+ assert u not in sess.dirty
+ u.uname = "some user name"
+ assert u.uname == "some user name"
+ assert u.user_name == "some user name"
+ assert u in sess.dirty
def testextensionoptions(self):
sess = create_session()