code: def add_eager_constraints(self, models):
          
          table = self._parent.get_table()
  
          self._query.where_in("%s.%s" % (table, self._first_key), self.get_keys(models))
docs: Set the constraints for an eager load of the relation.
  
          :type models: list