def _reset_polymorphic_adapter(self, mapper):
    for m2 in mapper._with_polymorphic_mappers:
        self._polymorphic_adapters.pop(m2, None)
        for m in m2.iterate_to_root():
            self._polymorphic_adapters.pop(m.local_table, None)
def _reset_polymorphic_adapter(self, mapper):
    for m2 in mapper._with_polymorphic_mappers:
        self._polymorphic_adapters.pop(m2, None)
        for m in m2.iterate_to_root():
            self._polymorphic_adapters.pop(m.local_table, None)