allow composites to accept any series of attribute names

Issue #2024 resolved
Mike Bayer repo owner created an issue

any string attribute name that references a mapped property can be used. this just means replace the composite's "self.columns" with "self.props", convert from given list of cols/prop names to props during do_init().

mapper(Foo, bar, properties={
   'bat':composite(MyComposite, bar.c.x, 'hoho', bar.c.y),
   'hoho':relationship(Hoho)
})

Comments (2)

  1. Log in to comment