Set the constraints for an eager load of the relation.

        :type models: list

def add_eager_constraints(self, models):
        """
        Set the constraints for an eager load of the relation.

        :type models: list
        """
        self._query.where_in(self.get_foreign_key(), self.get_keys(models))