]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
lazy load and deferred load operations require the parent object
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Jun 2006 00:56:25 +0000 (00:56 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Jun 2006 00:56:25 +0000 (00:56 +0000)
commit69549460f79975c71007accfd219e9e18f6f09c2
tree6a88df1c1102ee86b339b9e0c651fcf3b03af5ad
parentd97ee85ca8e4f7b53f759a411c0c9c87cb987a64
lazy load and deferred load operations require the parent object
to be in a Session to do the operation; whereas before the operation
would just return a blank list or None, it now raises an exception.

Session.update() is slightly more lenient if the session to which
the given object was formerly attached to was garbage collected;
otherwise still requires you explicitly remove the instance from
the previous Session.
CHANGES
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/session.py