@property
def _unloaded_non_object(self):
- return self.unloaded.difference(self._uses_objects)
-
- @property
- def _uses_objects(self):
- return (attr for attr in self.manager
- if self.manager[attr].impl.uses_objects)
+ return self.unloaded.intersection(
+ attr for attr in self.manager
+ if self.manager[attr].impl.accepts_scalar_loader
+ )
@property
def expired_attributes(self):
Secondary = self.classes.Secondary
mapper(Hoho, default_t, eager_defaults=True, properties={
- "sec": relationship(Secondary)
+ "sec": relationship(Secondary),
+ "syn": sa.orm.synonym(default_t.c.counter)
})
+
mapper(Secondary, self.tables.secondary_table)
h1 = Hoho()