/**
* Returns the \Doctrine\ORM\Query to select all categories for example for the backend tree
*
* @param int|null $limit
* @param int|null $offset
* @param bool $selectOnlyActive
*
* @return Query<Category>
*/
public function getListQuery(array
$filterBy, array
$orderBy =
[],
$limit = null,
$offset = null,
$selectOnlyActive = true
) { $builder =
$this->
getListQueryBuilder($filterBy,
$orderBy,
$limit,
$offset,
$selectOnlyActive);
return $builder->
getQuery();
} /**
* Returns a query builder object to get all defined categories with a count of sub categories.
*
* @param array<string, string>|array<array{property: string, value: mixed, expression?: string}> $filterBy
* @param array<array{property: string, direction: string}> $orderBy
* @param int|null $limit
* @param int|null $offset
*
* @return QueryBuilder
*/