/** * Based on the query operation, determine whether paging should be used. * * @param QueryOperation $operation * @return bool */ protected function shouldUsePaging(QueryOperation $operation) { return $operation->getUsePaging() && $operation->getScope() != QueryOperation::SCOPE['BASE']; }