Following Gedmo Tree manual I'd like to get tree of categories like the documentation shows:
$repository = $entityManager->getRepository(Category::class); $tree = $repository->childrenHierarchy();
however it throws an exception:
Invalid sort options specified: field - root, direction - asc