X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/7a0be510744f8f8abec3b9eb6e4d389e86949602..d8950f7e2adfbca7f28c64f4e0637e00359f9539:/Repository/SnippetRepository.php?ds=sidebyside diff --git a/Repository/SnippetRepository.php b/Repository/SnippetRepository.php index 2da863e..3d53487 100644 --- a/Repository/SnippetRepository.php +++ b/Repository/SnippetRepository.php @@ -25,7 +25,7 @@ class SnippetRepository extends \Doctrine\ORM\EntityRepository { public function findByUserIdLocaleIndexByLocationId(int $userId, string $locale): array { //Fetch snippets $ret = $this->_em - ->createQuery('SELECT s FROM RapsysAirBundle:Snippet s INDEX BY s.location WHERE s.locale = :locale and s.user = :user') + ->createQuery('SELECT s FROM Rapsys\AirBundle\Entity\Snippet s INDEX BY s.location WHERE s.locale = :locale and s.user = :user') ->setParameter('user', $userId) ->setParameter('locale', $locale) ->getResult();