Skip to content

Use column from other table as discriminator? #11414

Discussion options

You must be logged in to vote

the SO solution seems to be:
mapper(Parent, parentsTable, polymorphic_on=parentsTable.c.parentTypeId)

Parent uses a column of it's table as polymorphic discriminator. In your example you are trying to use a column of another table

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@studioph
Comment options

@CaselIT
Comment options

Answer selected by studioph
@studioph
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants