def add_eager_constraints(self, models):
        self._query.where_in(self.get_foreign_key(), self.get_keys(models))
Set the constraints for an eager load of the relation.
dataset/ETHPy150Open sdispater/orator/orator/orm/relations/belongs_to_many.py/BelongsToMany.add_eager_constraints