Merge pull request #2701 from wallabag/disable-outputWalkers

Removed outputWalkers for pagination
This commit is contained in:
Nicolas Lœuillet 2016-12-16 07:43:01 +01:00 committed by GitHub
commit be8033bf12
3 changed files with 4 additions and 6 deletions

View file

@ -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);

View file

@ -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');

View file

@ -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);
}