Re: [sqlalchemy] Inheritance Hierarchies: Loading a model created with parent class in same session

2022-06-20 Thread Mike Bayer
On Sun, Jun 19, 2022, at 3:52 PM, David Bücher wrote: > To avoid writing a function selecting the correct class for a 'type' value, I > would like to create models using the parent class ('Employee') and 'type' > instead of using the child class ('Manager', 'Engineer') in the first place.

[sqlalchemy] Inheritance Hierarchies: Loading a model created with parent class in same session

2022-06-19 Thread David Bücher
To avoid writing a function selecting the correct class for a 'type' value, I would like to create models using the parent class ('Employee') and 'type' instead of using the child class ('Manager', 'Engineer') in the first place. I noticed that the resulting object is not of the respecting