queryBuilder->getFragment(Query\MsSQL\Offset::class) ) { if (null === $order = $this->queryBuilder->getFragment(Query\OrderBy::class)) { $this->orderBy("(SELECT 0)"); } } } protected function serverRequestCountRepository() : Repository { return new static($this->entityClass, $this->alias, $this->adapter); } }