diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-14 05:53:18 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-14 05:53:18 +0000 |
| commit | 0df750223a5f6ee4cfa987a4abd5ab4691007350 (patch) | |
| tree | 89780e200d97f36a83d30c5da45122d211cb1075 /lib/sqlalchemy/orm/interfaces.py | |
| parent | 273e48c9a95825541bd461a1d5402f2e65f95876 (diff) | |
| download | sqlalchemy-0df750223a5f6ee4cfa987a4abd5ab4691007350.tar.gz | |
- merged instances_yields branch r3908:3934, minus the "yield" part which remains slightly problematic
- cleanup of mapper._instance, query.instances(). mapper identifies objects which are part of the
current load using a app-unique id on the query context.
- attributes refactor; attributes now mostly use copy-on-modify instead of copy-on-load behavior,
simplified get_history(), added a new set of tests
- fixes to OrderedSet such that difference(), intersection() and others can accept an iterator
- OrderedIdentitySet passes in OrderedSet to the IdentitySet superclass for usage in difference/intersection/etc. operations so that these methods actually work with ordering behavior.
- query.order_by() takes into account aliased joins, i.e. query.join('orders', aliased=True).order_by(Order.id)
- cleanup etc.
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
| -rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index 413a1af2c..6119d1c6e 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -383,7 +383,7 @@ class MapperProperty(object): level (as opposed to the individual instance level). """ - return self.parent._is_primary_mapper() + return not self.parent.non_primary def merge(self, session, source, dest): """Merge the attribute represented by this ``MapperProperty`` |
