1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-20 19:52:09 +00:00

Add reload entry command

This commit is contained in:
Nicolas Hart 2017-08-21 10:36:56 +02:00
parent 4d2758dfa0
commit 511f1ce1e8
3 changed files with 222 additions and 0 deletions

View file

@ -364,6 +364,23 @@ class EntryRepository extends EntityRepository
return $qb->getQuery()->getArrayResult();
}
/**
* @param int $userId
*
* @return array
*/
public function getAllEntriesId($userId = null)
{
$qb = $this->createQueryBuilder('e')
->select('e.id');
if (null !== $userId) {
$qb->where('e.user = :userid')->setParameter(':userid', $userId);
}
return $qb->getQuery()->getArrayResult();
}
/**
* Find all entries by url and owner.
*