X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FRepository%2FEntriesRepository.php;h=c76b421569433909279c79d2f5fa1e0444472a36;hb=42a9064620eb73eaa42928a22eeec86299d4a883;hp=d87eb373069ebf9ea37ad386cdf2ed891518d8bd;hpb=889249804f44136fc608bbc6699f47932825d440;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Repository/EntriesRepository.php b/src/Wallabag/CoreBundle/Repository/EntriesRepository.php index d87eb373..c76b4215 100644 --- a/src/Wallabag/CoreBundle/Repository/EntriesRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntriesRepository.php @@ -25,6 +25,7 @@ class EntriesRepository extends EntityRepository ->setMaxResults($maxResults) ->where('e.isRead = 0') ->andWhere('e.userId =:userId')->setParameter('userId', $userId) + ->andWhere('e.isDeleted=0') ->getQuery(); $paginator = new Paginator($qb); @@ -48,6 +49,7 @@ class EntriesRepository extends EntityRepository ->setMaxResults($maxResults) ->where('e.isRead = 1') ->andWhere('e.userId =:userId')->setParameter('userId', $userId) + ->andWhere('e.isDeleted=0') ->getQuery(); $paginator = new Paginator($qb); @@ -71,6 +73,7 @@ class EntriesRepository extends EntityRepository ->setMaxResults($maxResults) ->where('e.isFav = 1') ->andWhere('e.userId =:userId')->setParameter('userId', $userId) + ->andWhere('e.isDeleted=0') ->getQuery(); $paginator = new Paginator($qb); @@ -86,6 +89,7 @@ class EntriesRepository extends EntityRepository ->where('e.isFav =:isStarred')->setParameter('isStarred', $isStarred) ->andWhere('e.isRead =:isArchived')->setParameter('isArchived', $isArchived) ->andWhere('e.userId =:userId')->setParameter('userId', $userId) + ->andWhere('e.isDeleted=0') ->getQuery() ->getResult(Query::HYDRATE_ARRAY);