blob: 18d015a707b5ed089ba831032493f5c0820ec75c (
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
24
25
26
|
<?php
namespace Wallabag\CoreBundle\Repository;
use Doctrine\ORM\EntityRepository;
class ChangeRepository extends EntityRepository
{
/**
* Used only in test case to get a tag for our entry.
*
* @param int $timestamp
*
* @return Tag
*/
public function findChangesSinceDate($timestamp)
{
$date = new \DateTime();
$date->setTimestamp($timestamp);
return $this->createQueryBuilder('c')
->where('c.createdAt >= :timestamp')->setParameter('timestamp', $date)
->getQuery()
->getResult();
}
}
|