X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/blobdiff_plain/23944f72bf54cef447e2034434e1c5df303f3083..refs/heads/master:/Repository/UserRepository.php diff --git a/Repository/UserRepository.php b/Repository/UserRepository.php index 6cb6cc3..27339b2 100644 --- a/Repository/UserRepository.php +++ b/Repository/UserRepository.php @@ -26,7 +26,7 @@ class UserRepository extends Repository implements PasswordUpgraderInterface { /** * Find user count as int * - * @return integer The keywords count + * @return integer The users count */ public function findCountAsInt(): int { //Set the request @@ -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)