def _set_join(self, query=None):
        if not query:
            query = self._query

        base_table = self._related.get_table()

        key = '%s.%s' % (base_table, self._related.get_key_name())

        query.join(self._table, key, '=', self.get_other_key())

        return self
Generates Untructured Grid
dataset/ETHPy150Open sdispater/orator/orator/orm/relations/belongs_to_many.py/BelongsToMany._set_join--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/tests/datasets.py/generateUnstructuredGrid_mixed