public function yieldLists(): \Generator
    {
        if (!isset($this->dataObjectFactory)) {
            throw new \LogicException('setDataObjectFactory must be called before calling nextList.');
        }

        if (!isset($this->objectListQuery)) {
            throw new \LogicException('setByFields must be called before calling nextList.');
        }

        // We need to yield ourselves first.
        $thisList = new Promise();
        $thisList->resolve($this);
        yield $thisList;

        $ranges = Range::nextRanges($this);
        foreach ($ranges as $range) {
            $byFields = clone $this->objectListQuery;
            $byFields->setRange($range);
            yield $this->dataObjectFactory->selectRequest($byFields);
        }
    }
public function yieldLists(): \Generator
    {
        if (!isset($this->dataObjectFactory)) {
            throw new \LogicException('setDataObjectFactory must be called before calling nextList.');
        }

        if (!isset($this->objectListQuery)) {
            throw new \LogicException('setByFields must be called before calling nextList.');
        }

        // We need to yield ourselves first.
        $thisList = new Promise();
        $thisList->resolve($this);
        yield $thisList;

        $ranges = Range::nextRanges($this);
        foreach ($ranges as $range) {
            $byFields = clone $this->objectListQuery;
            $byFields->setRange($range);
            yield $this->dataObjectFactory->selectRequest($byFields);
        }
    }
public function yieldLists ( ) : \ Generator { if ( ! isset ( $ this -> dataObjectFactory ) ) { throw new \ LogicException ( 'setDataObjectFactory must be called before calling nextList.' ) ; } if ( ! isset ( $ this -> objectListQuery ) ) { throw new \ LogicException ( 'setByFields must be called before calling nextList.' ) ; } // We need to yield ourselves first. $ thisList = new Promise ( ) ; $ thisList -> resolve ( $ this ) ; yield $ thisList ; $ ranges = Range :: nextRanges ( $ this ) ; foreach ( $ ranges as $ range ) { $ byFields = clone $ this -> objectListQuery ; $ byFields -> setRange ( $ range ) ; yield $ this -> dataObjectFactory -> selectRequest ( $ byFields ) ; } }
Yield select requests for all pages of this object list.

@return \Generator A generator returning promises to object lists.
Yield select requests for all pages of this object list .