blob: 0f362f79ebb0efdc37d4a9f2599e4100e24723e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository;
class TagRepository extends EntityRepository
{
public function findByEntries($entryId)
{
$qb = $this->createQueryBuilder('t')
->select('t')
->leftJoin('t.id', 'u')
->where('e.isStarred = true')
->andWhere('u.id =:userId')->setParameter('userId', $userId)
->orderBy('e.createdAt', 'desc')
->getQuery();
$paginator = new Paginator($qb);
return $paginator;
}
}
|