X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/7a0be510744f8f8abec3b9eb6e4d389e86949602..2884b5c8b4514b0e1c0dd0449db2af5be32382b6:/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();