- edited description
AliasedClass or aliased(model) can't be inherited correctly
AliasedClass or an aliased(model) isn't an inhertiable class.
Currently if you want to create a separate class that mimics the same model with complex polymorphic relationships. Creating an Aliased class is the only way of doing so so that the mappers are pointing to the same location; however, Aliased models can't accept custom session.query_properties or inherited to expand on these functionalities.
Comments (3)
-
reporter -
repo owner Currently if you want to create a separate class that mimics the same model with complex polymorphic relationships. Creating an Aliased class is the only way of doing so so that the mappers are pointing to the same location;
this is incorrect. you can make a subclass of the original mapped class. Subclassing an AliasedClass object is not necessary nor is it appropriate.
Please illustrate an exact use case and I'll show you how to do it.
-
repo owner - changed status to closed
okey doke...please email the list at https://groups.google.com/forum/#!forum/sqlalchemy with the use case you're looking for and we'll help you out. thanks!
- Log in to comment