1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Fix test following 2.5 merge into master

This commit is contained in:
Jeremy Benoist 2023-04-24 14:45:28 +02:00
parent 66b7bdd07c
commit 4dd380b7dd
No known key found for this signature in database
GPG key ID: 7168D5DD29F38552
4 changed files with 262 additions and 406 deletions

View file

@ -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)
{