]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Repository/UserRepository.php
Version 0.6.0
[userbundle] / Repository / UserRepository.php
index 6cb6cc3a172587869004d5cd1d7ec2bfb2ac1942..27339b2f753d6636b482e397868a8cedc6fceb14 100644 (file)
@@ -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)