def _set_where(self):
        foreign = self.get_foreign_key()

        self._query.where(foreign, '=', self._parent.get_key())

        return self
Set fields used to group query results.
dataset/ETHPy150Open sdispater/orator/orator/orm/relations/belongs_to_many.py/BelongsToMany._set_where--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/query.py/Query.distinct_on