- changed component to orm
Modify mappings to support casting for polymorphic relations.
Issue #1348
resolved
I was running into a case where I wanted to support a polymorphic one to many relation, where the different related tables have primary keys of different types. The mapper was not allowing that. I provide a patch and a bit of example code which expresses a possible fix.
Comments (6)
-
repo owner -
Account Deleted - attached ticket_610_1348_unified.diff
unified diff from trunk r5856
-
Account Deleted See attached patch please. I do believe this is a dup for
#610. -
repo owner - changed milestone to 0.5.xx
thanks. im not thrilled about the explicit check for cast_() and wonder if there's some better way to do that, but I'll have a look at this.
-
repo owner - changed status to duplicate
-
repo owner - removed milestone
Removing milestone: 0.5.xx (automated comment)
- Log in to comment
seems like a dupe of
#610. please provide patches in unified diff format against the SQLAlchemy trunk.