/**
* Returns an instance of the \Doctrine\ORM\Query object which select a list of roles.
*
* @param int|null $offset
* @param int|null $limit
*
* @return Query<Role>
*/
public function getRolesQuery($offset = null,
$limit = null
) { $builder =
$this->
getRolesQueryBuilder();
if ($limit !== null
) { $builder->
setFirstResult($offset) ->
setMaxResults($limit);
} return $builder->
getQuery();
} /**
* Helper function to create the query builder for the "getRolesQuery" function.
* This function can be hooked to modify the query builder of the query object.
*
* @return QueryBuilder
*/