Chunk the results of the query

        :param count: The chunk size
        :type count: int

        :return: The current chunk
        :rtype: list

def chunk(self, count):
        """
        Chunk the results of the query

        :param count: The chunk size
        :type count: int

        :return: The current chunk
        :rtype: list
        """
        connection = self._model.get_connection_name()
        for results in self.apply_scopes().get_query().chunk(count):
            models = self._model.hydrate(results, connection)

            # If we actually found models we will also eager load any relationships that
            # have been specified as needing to be eager loaded, which will solve the
            # n+1 query issue for the developers to avoid running a lot of queries.
            if len(models) > 0:
                models = self.eager_load_relations(models)

            collection = self._model.new_collection(models)

            yield collection