if self.with_polymorphic is None \
or self.with_polymorphic[1].corresponding_column(col) \
is None:
- util.warn("Could not map polymorphic_on column "
+ raise sa_exc.InvalidRequestError("Could not map polymorphic_on column "
"'%s' to the mapped table - polymorphic "
"loads will not function properly"
% col.description)
polymorphic_identity=0)
assert_raises_message(
- sa_exc.SAWarning,
+ sa_exc.InvalidRequestError,
"Could not map polymorphic_on column 'x' to the mapped table - "
"polymorphic loads will not function properly",
go
with_polymorphic=('*', t1t2_join_2),
polymorphic_identity=0)
assert_raises_message(
- sa_exc.SAWarning,
+ sa_exc.InvalidRequestError,
"Could not map polymorphic_on column 'x' to the mapped table - "
"polymorphic loads will not function properly",
go