diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 9 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/TagRepository.php | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index c27ee90c..7f35bb9a 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -3,9 +3,10 @@ | |||
3 | namespace Wallabag\CoreBundle\Repository; | 3 | namespace Wallabag\CoreBundle\Repository; |
4 | 4 | ||
5 | use Doctrine\ORM\EntityRepository; | 5 | use Doctrine\ORM\EntityRepository; |
6 | use Doctrine\ORM\Query; | 6 | use Doctrine\ORM\QueryBuilder; |
7 | use Pagerfanta\Adapter\DoctrineORMAdapter; | 7 | use Pagerfanta\Adapter\DoctrineORMAdapter; |
8 | use Pagerfanta\Pagerfanta; | 8 | use Pagerfanta\Pagerfanta; |
9 | use Wallabag\CoreBundle\Entity\Entry; | ||
9 | use Wallabag\CoreBundle\Entity\Tag; | 10 | use Wallabag\CoreBundle\Entity\Tag; |
10 | 11 | ||
11 | class EntryRepository extends EntityRepository | 12 | class EntryRepository extends EntityRepository |
@@ -74,7 +75,7 @@ class EntryRepository extends EntityRepository | |||
74 | * | 75 | * |
75 | * @param int $userId | 76 | * @param int $userId |
76 | * @param string $term | 77 | * @param string $term |
77 | * @param strint $currentRoute | 78 | * @param string $currentRoute |
78 | * | 79 | * |
79 | * @return QueryBuilder | 80 | * @return QueryBuilder |
80 | */ | 81 | */ |
@@ -126,7 +127,7 @@ class EntryRepository extends EntityRepository | |||
126 | * @param int $since | 127 | * @param int $since |
127 | * @param string $tags | 128 | * @param string $tags |
128 | * | 129 | * |
129 | * @return array | 130 | * @return Pagerfanta |
130 | */ | 131 | */ |
131 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isPublic = null, $sort = 'created', $order = 'ASC', $since = 0, $tags = '') | 132 | public function findEntries($userId, $isArchived = null, $isStarred = null, $isPublic = null, $sort = 'created', $order = 'ASC', $since = 0, $tags = '') |
132 | { | 133 | { |
@@ -172,7 +173,7 @@ class EntryRepository extends EntityRepository | |||
172 | * | 173 | * |
173 | * @param int $userId | 174 | * @param int $userId |
174 | * | 175 | * |
175 | * @return Entry | 176 | * @return array |
176 | */ | 177 | */ |
177 | public function findOneWithTags($userId) | 178 | public function findOneWithTags($userId) |
178 | { | 179 | { |
diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php index 6c63a6a2..213283e5 100644 --- a/src/Wallabag/CoreBundle/Repository/TagRepository.php +++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace Wallabag\CoreBundle\Repository; | 3 | namespace Wallabag\CoreBundle\Repository; |
4 | 4 | ||
5 | use Doctrine\ORM\EntityRepository; | 5 | use Doctrine\ORM\EntityRepository; |
6 | use Wallabag\CoreBundle\Entity\Tag; | ||
6 | 7 | ||
7 | class TagRepository extends EntityRepository | 8 | class TagRepository extends EntityRepository |
8 | { | 9 | { |