andWhere('.cookie LIKE :cookie') ->setParameter('cookie', $cookie); } public function filterByLastAccess(\DateTime $lastAccess) { return $this ->andWhere('.lastAccess < :lastAccess') ->setParameter('lastAccess', $lastAccess); } public function filterByTotalVisit(int $totalVisit) { return $this ->andWhere('.totalVisit = :totalVisit') ->setParameter('totalVisit', $totalVisit); } }