hgabka
hgabka
Same problem here. The problem is that if root is configured, NestedTreeRepository::getNodesHierarchyQueryBuilder adds $config['root'] as sort field (line 893 in src/Tree/Repository/NestedTreeRepository.php), but it is not in doctrine metadata fields, as...
@imajim As I wrote, this only works if the tree is single rooted. However, you can alter the childrenQueryBuilder to add the sorting by root id first.
Ok, thanks I will try and send a PR if I manage to cope with it.
I created the PR to fix SF7 compatibility: https://github.com/symfony/acl-bundle/pull/44
Created a PR with the fix: https://github.com/symfony/security-acl/pull/115