def setup_mappers(cls): foo = cls.tables.foo subfoo = cls.tables.subfoo mapper(Foo, foo) mapper(SubFoo, subfoo, inherits=Foo) MutableDict.associate_with_attribute(Foo.data)
def setup_mappers(cls): foo = cls.tables.foo subfoo = cls.tables.subfoo mapper(Foo, foo) mapper(SubFoo, subfoo, inherits=Foo) MutableDict.associate_with_attribute(Foo.data)
def setup_mappers(cls): foo = cls.tables.foo subfoo = cls.tables.subfoo cls.mapper_registry.map_imperatively(Foo, foo) cls.mapper_registry.map_imperatively(SubFoo, subfoo, inherits=Foo) MutableDict.associate_with_attribute(Foo.data)