backrefs involved, where the initiating parent
was a subclass (with its own mapper) of the
previous parent.
+
+ - Fixed a regression in 0.6.5 which occurred if you
+ passed an empty list to "include_properties" on
+ mapper() [ticket:1918]
- Added an assertion during flush which ensures
that no NULL-holding identity keys were generated
else:
self.polymorphic_map = _polymorphic_map
- if include_properties:
+ if include_properties is not None:
self.include_properties = util.to_set(include_properties)
else:
self.include_properties = None
class HasDef(object):
def name(self):
pass
-
+ class Empty(object):pass
+
+ empty = mapper(Empty, t, properties={'empty_id' : t.c.id},
+ include_properties=[])
p_m = mapper(Person, t, polymorphic_on=t.c.type,
include_properties=('id', 'type', 'name'))
e_m = mapper(Employee, inherits=p_m,
# excluding the discriminator column is currently not allowed
class Foo(Person):
pass
+ assert_props(Empty, ['empty_id'])
assert_raises(
sa.exc.InvalidRequestError,