[SQLObject] Forcing cache refresh of MultipleJoins
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Edmund L. <el...@in...> - 2003-07-28 01:40:36
|
I have a one-to-many relationship of the form: class A(SQLObject): ... things = MultipleJoin("B") class B(SQLObject): ... aThing = ForeignKey("A") If I check what things are in A via something like aObj.things, then delete one of the B objects that appears in the list directly via bObj.destroySelf(), executing the aObj.things again raises a SQLObjectNotFound error for the just deleted B instance. Executing aObj.things a second time works though. So there appears to be some kind of cache synchronization issue at play here. Is there some way to force an object to refresh it's cached values? ...Edmund. |