diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-08-22 11:21:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 11:21:04 +0200 |
commit | 54171dd796a6cedc076357e4eb62e6dc1ce6dd64 (patch) | |
tree | 9de9c091b90603ab73e8c264bd1fd7a26af35dbe /src/Wallabag/CoreBundle/Repository | |
parent | 4d2758dfa0f12ff07da6cf907de7737f19219fea (diff) | |
parent | dbf1188c5b78b7190cbfce2db00e08d5e69029ff (diff) | |
download | wallabag-54171dd796a6cedc076357e4eb62e6dc1ce6dd64.tar.gz wallabag-54171dd796a6cedc076357e4eb62e6dc1ce6dd64.tar.zst wallabag-54171dd796a6cedc076357e4eb62e6dc1ce6dd64.zip |
Merge pull request #3326 from nclsHart/reload-entry-command
Add reload entry command
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index d70d6ca6..eb5e3205 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -355,7 +355,7 @@ class EntryRepository extends EntityRepository | |||
355 | * Get id and url from all entries | 355 | * Get id and url from all entries |
356 | * Used for the clean-duplicates command. | 356 | * Used for the clean-duplicates command. |
357 | */ | 357 | */ |
358 | public function getAllEntriesIdAndUrl($userId) | 358 | public function findAllEntriesIdAndUrlByUserId($userId) |
359 | { | 359 | { |
360 | $qb = $this->createQueryBuilder('e') | 360 | $qb = $this->createQueryBuilder('e') |
361 | ->select('e.id, e.url') | 361 | ->select('e.id, e.url') |
@@ -365,6 +365,23 @@ class EntryRepository extends EntityRepository | |||
365 | } | 365 | } |
366 | 366 | ||
367 | /** | 367 | /** |
368 | * @param int $userId | ||
369 | * | ||
370 | * @return array | ||
371 | */ | ||
372 | public function findAllEntriesIdByUserId($userId = null) | ||
373 | { | ||
374 | $qb = $this->createQueryBuilder('e') | ||
375 | ->select('e.id'); | ||
376 | |||
377 | if (null !== $userId) { | ||
378 | $qb->where('e.user = :userid')->setParameter(':userid', $userId); | ||
379 | } | ||
380 | |||
381 | return $qb->getQuery()->getArrayResult(); | ||
382 | } | ||
383 | |||
384 | /** | ||
368 | * Find all entries by url and owner. | 385 | * Find all entries by url and owner. |
369 | * | 386 | * |
370 | * @param $url | 387 | * @param $url |