->setMaxResults($maxResults)
->where('e.isRead = 0')
->andWhere('e.userId =:userId')->setParameter('userId', $userId)
+ ->andWhere('e.isDeleted=0')
->getQuery();
$paginator = new Paginator($qb);
->setMaxResults($maxResults)
->where('e.isRead = 1')
->andWhere('e.userId =:userId')->setParameter('userId', $userId)
+ ->andWhere('e.isDeleted=0')
->getQuery();
$paginator = new Paginator($qb);
->setMaxResults($maxResults)
->where('e.isFav = 1')
->andWhere('e.userId =:userId')->setParameter('userId', $userId)
+ ->andWhere('e.isDeleted=0')
->getQuery();
$paginator = new Paginator($qb);
->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);