Move Annotation entity to Core

This commit is contained in:
Yassine Guedidi
2023-12-25 18:50:29 +01:00
parent 1a6036cb23
commit 2190174754
10 changed files with 11 additions and 13 deletions

View File

@ -5,7 +5,7 @@ namespace Wallabag\AnnotationBundle\Repository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ManagerRegistry;
use Wallabag\AnnotationBundle\Entity\Annotation;
use Wallabag\CoreBundle\Entity\Annotation;
/**
* AnnotationRepository.
@ -130,7 +130,7 @@ class AnnotationRepository extends ServiceEntityRepository
public function removeAllByUserId($userId)
{
$this->getEntityManager()
->createQuery('DELETE FROM Wallabag\AnnotationBundle\Entity\Annotation a WHERE a.user = :userId')
->createQuery('DELETE FROM Wallabag\CoreBundle\Entity\Annotation a WHERE a.user = :userId')
->setParameter('userId', $userId)
->execute();
}