X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/4b2d1cb3942415124853c6543a208fb51abf5264..bda45c555c96461e7a0e9533360c2d79fa805438:/Repository/DanceRepository.php diff --git a/Repository/DanceRepository.php b/Repository/DanceRepository.php index f7986d1..1902822 100644 --- a/Repository/DanceRepository.php +++ b/Repository/DanceRepository.php @@ -54,7 +54,7 @@ SQL; ->addIndexByColumn('d', 'id'); //Return return - return $this->_em + return $this->manager ->createNativeQuery($req, $rsm) ->getResult(); } @@ -92,7 +92,7 @@ SQL; ->addIndexByScalar('name'); //Get result - $result = $this->_em + $result = $this->manager ->createNativeQuery($req, $rsm) ->getArrayResult(); @@ -153,7 +153,7 @@ SQL; $rsm->addScalarResult('id', 'id', 'integer'); //Return result - return $this->_em + return $this->manager ->createNativeQuery($req, $rsm) ->setParameter('nametype', $nametype) //XXX: instead of array_column on the result @@ -191,11 +191,11 @@ SQL; $rsm->addScalarResult('id', 'id', 'integer') ->addScalarResult('name', 'name', 'string') ->addScalarResult('type', 'type', 'string') - ->addScalarResult('modified', 'modified', 'datetime') + ->addScalarResult('modified', 'modified', 'datetime_immutable') ->addIndexByScalar('id'); //Get result - $result = $this->_em + $result = $this->manager ->createNativeQuery($req, $rsm) ->setParameter('id', $id) ->getOneOrNullResult(); @@ -297,11 +297,11 @@ SQL; $rsm->addScalarResult('name', 'name', 'string') ->addScalarResult('ids', 'ids', 'string') ->addScalarResult('types', 'types', 'string') - ->addScalarResult('modified', 'modified', 'datetime') + ->addScalarResult('modified', 'modified', 'datetime_immutable') ->addIndexByScalar('name'); //Get result - $result = $this->_em + $result = $this->manager ->createNativeQuery($req, $rsm) ->getArrayResult(); @@ -374,7 +374,7 @@ WHERE ud.user_id = :uid'; $rsm->addFieldResult('d', 'type', 'type'); //Send result - return $this->_em + return $this->manager ->createNativeQuery($req, $rsm) ->setParameter('uid', $userId) ->getResult();