diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-10 23:05:03 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-10 23:05:03 +0000 |
| commit | f1b164df9ff1399c8c39c39d5053d3c9c1e48ba7 (patch) | |
| tree | 4a1bc85e4c5f74501c5a248ba72df48e8fd4384a | |
| parent | 2dfdf70660d747f02e628f8a5263d03820a50f35 (diff) | |
| download | sqlalchemy-f1b164df9ff1399c8c39c39d5053d3c9c1e48ba7.tar.gz | |
expunge wasnt de-associating the object with a session
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/orm/session.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ of subclassed directly. - activemapper will use threadlocal's objectstore if the mod is activated when activemapper is imported - small fix to URL regexp to allow filenames with '@' in them +- fixes to Session expunge/update/etc. 0.2.5 - fixed endless loop bug in select_by(), if the traversal hit diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 5bed7181c..82e1c6d6d 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -266,6 +266,7 @@ class Session(object): def expunge(self, object): """removes the given object from this Session. this will free all internal references to the object.""" self.uow.expunge(object) + self._unattach(object) def save(self, object, entity_name=None): """ |
