X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/blobdiff_plain/ffeb0f7e44aa00f2f163e20e4ca3e03a8b790653..ac10223cb33c7f8292e541a04112f4027f28c290:/Repository/UserRepository.php diff --git a/Repository/UserRepository.php b/Repository/UserRepository.php index 13dc2f0..27339b2 100644 --- a/Repository/UserRepository.php +++ b/Repository/UserRepository.php @@ -48,7 +48,7 @@ SQL; $rsm->addScalarResult('count', 'count', 'integer'); //Get result - return $this->_em + return $this->manager ->createNativeQuery($req, $rsm) ->getSingleScalarResult(); } @@ -106,7 +106,7 @@ SQL; ->addScalarResult('g_title', 'g_title', 'string'); //Fetch result - $res = $this->_em + $res = $this->manager ->createNativeQuery($req, $rsm) ->setParameter('offset', $page * $count) ->setParameter('count', $count)