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

Make repositories use ServiceEntityRepository

This commit is contained in:
Yassine Guedidi 2022-08-27 23:01:09 +02:00
parent 51884911f5
commit 1bee0eeb29
11 changed files with 95 additions and 42 deletions

View file

@ -2,15 +2,21 @@
namespace Wallabag\AnnotationBundle\Repository;
use Doctrine\ORM\EntityRepository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ManagerRegistry;
use Wallabag\AnnotationBundle\Entity\Annotation;
/**
* AnnotationRepository.
*/
class AnnotationRepository extends EntityRepository
class AnnotationRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Annotation::class);
}
/**
* Retrieves all annotations for a user.
*