if (!
$this->autoIncrement
) { $this->criteria->
setOffset($this->criteria->
getOffset() +
$this->criteria->
getLimit());
return $values;
} $last =
end($values);
if (!\
is_string($last)) { throw new \
RuntimeException('Expected string as last element of ids array'
);
} $increment =
$ids->
getDataFieldOfId($last, 'autoIncrement'
);
$this->criteria->
setFilter('increment',
new RangeFilter('autoIncrement',
[RangeFilter::GT =>
$increment]));
return $values;
} /**
* @return EntitySearchResult<TEntityCollection>|null
*/
public function fetch(): ?EntitySearchResult
{ $this->criteria->
setTotalCountMode(Criteria::TOTAL_COUNT_MODE_NONE
);