Symfony's Gedmo Tree throws sorting error

Viewed 41

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

0 Answers
Related