->addIndexByColumn('d', 'id');
//Return return
- return $this->_em
+ return $this->manager
->createNativeQuery($req, $rsm)
->getResult();
}
->addIndexByScalar('name');
//Get result
- $result = $this->_em
+ $result = $this->manager
->createNativeQuery($req, $rsm)
->getArrayResult();
$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
$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();
$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();
$rsm->addFieldResult('d', 'type', 'type');
//Send result
- return $this->_em
+ return $this->manager
->createNativeQuery($req, $rsm)
->setParameter('uid', $userId)
->getResult();