forked from wallabag/wallabag
Merge remote-tracking branch 'origin/master' into 2.5.0
This commit is contained in:
@ -385,9 +385,9 @@ class EntryRepository extends EntityRepository
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function findAllByTagId($userId, $tagId)
|
||||
public function findAllByTagId($userId, $tagId, $sort = 'createdAt')
|
||||
{
|
||||
return $this->getSortedQueryBuilderByUser($userId)
|
||||
return $this->getSortedQueryBuilderByUser($userId, $sort)
|
||||
->innerJoin('e.tags', 't')
|
||||
->andWhere('t.id = :tagId')->setParameter('tagId', $tagId)
|
||||
->getQuery()
|
||||
|
||||
Reference in New Issue
Block a user