->addIndexByScalar('id');
//Fetch result
- $res = $this->_em
+ $res = $this->manager
->createNativeQuery($req, $rsm)
->getResult();
$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
->addIndexByScalar('pseudonym');
//Get result
- $result = $this->_em
+ $result = $this->manager
->createNativeQuery($req, $rsm)
->setParameter('id', $sessionId)
->getArrayResult();
->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
->addIndexByScalar('id');
//Get result
- $result = $this->_em
+ $result = $this->manager
->createNativeQuery($req, $rsm)
->setParameter('id', $id)
->getOneOrNullResult();
->addScalarResult('d_types', 'd_types', 'string');
//Fetch result
- $res = $this->_em
+ $res = $this->manager
->createNativeQuery($req, $rsm)
->getResult();