Re: [sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Benjamin B.
Hello Simon, It really looks like you put the finger on the problem. I'm going to try this now and see if it solves the problem, because we're currently building Comm objects and not Email or Phones. Thank you for your reply ! On Friday, May 18, 2018 at 2:22:14 PM UTC+2, Simon King wrote:

Re: [sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Simon King
On Fri, May 18, 2018 at 12:19 PM, Benjamin B. wrote: > Hello everybody, > > TL;DR We are experiencing a bug where, with perfectly valid data, the > polymorphic_identity is randomly (0,05%) not respected, and the object > ends-up being the parent class instead of the "requested"

[sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Benjamin B.
Hello everybody, *TL;DR *We are experiencing a bug where, with perfectly valid data, the polymorphic_identity is randomly (0,05%) not respected, and the object ends-up being the parent class instead of the "requested" child class. First, some code ! We have here a three table schema : -