mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-31 07:47:28 +01:00
Merge pull request #6468 from wallabag/fix/test-2.5-merge
Fix test following 2.5 merge into master
This commit is contained in:
commit
81eebb46fd
@ -60,11 +60,11 @@ class AnnotationRepository extends ServiceEntityRepository
|
||||
public function findOneByIdAndUserId($annotationId, $userId)
|
||||
{
|
||||
return $this->createQueryBuilder('a')
|
||||
->where('a.id = :annotationId')->setParameter('annotationId', $annotationId)
|
||||
->andWhere('a.user = :userId')->setParameter('userId', $userId)
|
||||
->setMaxResults(1)
|
||||
->getQuery()
|
||||
->getOneOrNullResult();
|
||||
->where('a.id = :annotationId')->setParameter('annotationId', $annotationId)
|
||||
->andWhere('a.user = :userId')->setParameter('userId', $userId)
|
||||
->setMaxResults(1)
|
||||
->getQuery()
|
||||
->getOneOrNullResult();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +90,7 @@ class AnnotationRepository extends ServiceEntityRepository
|
||||
*
|
||||
* @param int $entryId
|
||||
*
|
||||
* @return array
|
||||
* @return Annotation|null
|
||||
*/
|
||||
public function findLastAnnotationByUserId($entryId, $userId)
|
||||
{
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user