]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Repository/UserRepository.php
Version 0.6.0
[airbundle] / Repository / UserRepository.php
index 725e3ed3f482e3a08001d9f523549bb7ce4cfacc..403e8ab1075c0909c1df89009a7101043b820aa2 100644 (file)
@@ -69,7 +69,7 @@ SQL;
                        ->addIndexByScalar('id');
 
                //Fetch result
-               $res = $this->_em
+               $res = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->getResult();
 
@@ -139,7 +139,7 @@ SQL;
                $rsm->addScalarResult('id', 'id', 'integer');
 
                //Return result
-               return $this->_em
+               return $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->setParameter('pseudonym', $pseudonym)
                        //XXX: instead of array_column on the result
@@ -175,7 +175,7 @@ SQL;
                        ->addIndexByScalar('pseudonym');
 
                //Get result
-               $result = $this->_em
+               $result = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->setParameter('id', $sessionId)
                        ->getArrayResult();
@@ -246,13 +246,13 @@ SQL;
                        ->addScalarResult('phone', 'phone', 'string')
                        ->addScalarResult('pseudonym', 'pseudonym', 'string')
                        ->addScalarResult('surname', 'surname', 'string')
-                       ->addScalarResult('updated', 'updated', 'datetime')
+                       ->addScalarResult('updated', 'updated', 'datetime_immutable')
                        ->addScalarResult('zipcode', 'zipcode', 'string')
                        ->addScalarResult('c_id', 'c_id', 'integer')
                        ->addScalarResult('c_title', 'c_title', 'string')
                        ->addScalarResult('o_id', 'o_id', 'integer')
                        ->addScalarResult('o_title', 'o_title', 'string')
-                       ->addScalarResult('modified', 'modified', 'datetime')
+                       ->addScalarResult('modified', 'modified', 'datetime_immutable')
                        //XXX: is a string because of \n separator
                        ->addScalarResult('ids', 'ids', 'string')
                        //XXX: is a string because of \n separator
@@ -260,7 +260,7 @@ SQL;
                        ->addIndexByScalar('id');
 
                //Get result
-               $result = $this->_em
+               $result = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->setParameter('id', $id)
                        ->getOneOrNullResult();
@@ -444,7 +444,7 @@ SQL;
                        ->addScalarResult('d_types', 'd_types', 'string');
 
                //Fetch result
-               $res = $this->_em
+               $res = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->getResult();