def _set_entity_selectables(self, entities):
    self._mapper_adapter_map = d = self._mapper_adapter_map.copy()
    for ent in entities:
        for entity in ent.entities:
            if (entity not in d):
                ext_info = inspect(entity)
                if ((not ext_info.is_aliased_class) and ext_info.mapper.with_polymorphic):
                    if (ext_info.mapper.mapped_table not in self._polymorphic_adapters):
                        self._mapper_loads_polymorphically_with(ext_info.mapper, sql_util.ColumnAdapter(ext_info.selectable, ext_info.mapper._equivalent_columns))
                    aliased_adapter = None
                elif ext_info.is_aliased_class:
                    aliased_adapter = ext_info._adapter
                else:
                    aliased_adapter = None
                d[entity] = (ext_info, aliased_adapter)
            ent.setup_entity(*d[entity])
def _set_entity_selectables(self, entities):
    self._mapper_adapter_map = d = self._mapper_adapter_map.copy()
    for ent in entities:
        for entity in ent.entities:
            if (entity not in d):
                ext_info = inspect(entity)
                if ((not ext_info.is_aliased_class) and ext_info.mapper.with_polymorphic):
                    if (ext_info.mapper.mapped_table not in self._polymorphic_adapters):
                        self._mapper_loads_polymorphically_with(ext_info.mapper, sql_util.ColumnAdapter(ext_info.selectable, ext_info.mapper._equivalent_columns))
                    aliased_adapter = None
                elif ext_info.is_aliased_class:
                    aliased_adapter = ext_info._adapter
                else:
                    aliased_adapter = None
                d[entity] = (ext_info, aliased_adapter)
            ent.setup_entity(*d[entity])