mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-19 14:16:29 +00:00
Merge pull request #2701 from wallabag/disable-outputWalkers
Removed outputWalkers for pagination
This commit is contained in:
commit
be8033bf12
3 changed files with 4 additions and 6 deletions
|
@ -319,7 +319,7 @@ class EntryController extends Controller
|
|||
$this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($form, $qb);
|
||||
}
|
||||
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb->getQuery());
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false);
|
||||
|
||||
$entries = $this->get('wallabag_core.helper.prepare_pager_for_entries')
|
||||
->prepare($pagerAdapter, $page);
|
||||
|
|
|
@ -85,7 +85,7 @@ class RssController extends Controller
|
|||
throw new \InvalidArgumentException(sprintf('Type "%s" is not implemented.', $type));
|
||||
}
|
||||
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb->getQuery());
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb->getQuery(), true, false);
|
||||
$entries = new Pagerfanta($pagerAdapter);
|
||||
|
||||
$perPage = $user->getConfig()->getRssLimit() ?: $this->getParameter('wallabag_core.rss_limit');
|
||||
|
|
|
@ -125,9 +125,7 @@ class EntryRepository extends EntityRepository
|
|||
{
|
||||
return $this
|
||||
->getBuilderByUser($userId)
|
||||
->leftJoin('e.tags', 't')
|
||||
->groupBy('e.id')
|
||||
->having('count(t.id) = 0');
|
||||
->andWhere('size(e.tags) = 0');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -173,7 +171,7 @@ class EntryRepository extends EntityRepository
|
|||
$qb->orderBy('e.updatedAt', $order);
|
||||
}
|
||||
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb);
|
||||
$pagerAdapter = new DoctrineORMAdapter($qb, true, false);
|
||||
|
||||
return new Pagerfanta($pagerAdapter);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue