]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- a session.expire() on a particular collection attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Feb 2009 20:38:30 +0000 (20:38 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Feb 2009 20:38:30 +0000 (20:38 +0000)
commit1d3185139a923fa1a1998d4498748d8f49278ac0
tree0cad1371e66c9629e85b139d296a70afe3ea6c30
parent60dd7842f012c7aaaa534ce22be06b0db25d86df
- a session.expire() on a particular collection attribute
will clear any pending backref additions as well, so that
the next access correctly returns only what was present
in the database.  Presents some degree of a workaround for
[ticket:1315], although we are considering removing the
flush([objects]) feature altogether.
CHANGES
lib/sqlalchemy/orm/attributes.py
test/orm/expire.py