X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/ed0a31d7a909f78a031e955c87ae55323b6f7ba8..bda45c555c96461e7a0e9533360c2d79fa805438:/Repository/UserRepository.php diff --git a/Repository/UserRepository.php b/Repository/UserRepository.php index 725e3ed..403e8ab 100644 --- a/Repository/UserRepository.php +++ b/Repository/UserRepository.php @@ -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();