[sqlalchemy] Problems with eager loading instances of a class which is part of an inheritance hierarchy where polymorphic_identity has been set dynamically.

2013-07-31 Thread Etienne Rouxel
Hello Better than a long speech, here are two files (eagerloading1.py, eagerloading2.py) which, I though, were supposed to do the same thing. Indeed, the difference is that in the first file, the polymorphic_identity is hard coded and in the second file, it is set dynamically afterward (like

Re: [sqlalchemy] Problems with eager loading instances of a class which is part of an inheritance hierarchy where polymorphic_identity has been set dynamically.

2013-07-31 Thread Michael Bayer
I've isolated what's happening here, but please send me scripts that generate data next time so that I don't need to take the time to reproduce all of this.the issue is not related to eager loading, it has to do with a many-to-one load of TaxonRelationship.referenced_taxon should pull from the

Re: [sqlalchemy] Problems with eager loading instances of a class which is part of an inheritance hierarchy where polymorphic_identity has been set dynamically.

2013-07-31 Thread Michael Bayer
ack ! totally missed that, sorry. On Jul 31, 2013, at 10:56 AM, Etienne Rouxel rouxel.etie...@gmail.com wrote: Hello Michael Thank you very much for your quick answer. I did provide the file test-data.sql that generates data. Didn't you see it or maybe would you like something