Fix parameters in API _links

We forgot to pass them to the factory
This commit is contained in:
Jeremy Benoist
2016-10-02 15:41:08 +02:00
parent 1dc3bee6b9
commit c3f8b428dd
3 changed files with 115 additions and 4 deletions

View File

@ -128,7 +128,7 @@ class EntryRepository extends EntityRepository
$qb->andWhere('e.isStarred =:isStarred')->setParameter('isStarred', (bool) $isStarred);
}
if ($since >= 0) {
if ($since > 0) {
$qb->andWhere('e.updatedAt > :since')->setParameter('since', new \DateTime(date('Y-m-d H:i:s', $since)));
}