/**
* Find user count as int
*
- * @return integer The keywords count
+ * @return integer The users count
*/
public function findCountAsInt(): int {
//Set the request
$rsm->addScalarResult('count', 'count', 'integer');
//Get result
- return $this->_em
+ return $this->manager
->createNativeQuery($req, $rsm)
->getSingleScalarResult();
}
->addScalarResult('g_title', 'g_title', 'string');
//Fetch result
- $res = $this->_em
+ $res = $this->manager
->createNativeQuery($req, $rsm)
->setParameter('offset', $page * $count)
->setParameter('count', $count)