Open dpwrussell opened 9 years ago
@Ademan, since you did some work on making relationship
work properly, do you have any ideas about this issue?
Sorry, semester just started, I'll take a look though.
@Ademan - Did you have a chance to look at this?
If I define an inherited relationship (joined-table in this case) in SQLAlchemy, the backref is not being properly understood by ColanderAlchemy.
In my contrived example there is
Person
, which is sub-classed inGamer
.Gamer
can have someScore
s associated with it.This will serialize a
Gamer
to this:Which is not what I was expecting. The
scores
backref is being ignored.Redefine
Gamer
to remove use of inheritance like so:and the result is:
which is exactly what I was expecting.
Just for completeness I also tried redefining score to make use of
Person
instead ofGamer
in its relation. This makes no difference:Working example: https://gist.github.com/dpwrussell/f465aee4618580614f61
I think this must be a bug as I can't see why that would happen otherwise.
Cheers