code: def add_eager_constraints(self, models):
          
          self._query.where_in(self.get_foreign_key(), self.get_keys(models))
docs: Set the constraints for an eager load of the relation.
  
          :type models: list