3 namespace Wallabag\CoreBundle\Repository
;
5 use Doctrine\ORM\EntityRepository
;
7 class ChangeRepository
extends EntityRepository
10 * Used only in test case to get a tag for our entry.
12 * @param int $timestamp
16 public function findChangesSinceDate($timestamp)
18 $date = new \
DateTime();
19 $date->setTimestamp($timestamp);
21 return $this->createQueryBuilder('c')
22 ->where('c.createdAt >= :timestamp')->setParameter('timestamp', $date)