Explorar o código

"left" instead of "lft" in the "Generate own node list" code example.

Jérémy CROMBEZ %!s(int64=13) %!d(string=hai) anos
pai
achega
247c0f1387
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      doc/tree.md

+ 1 - 1
doc/tree.md

@@ -518,7 +518,7 @@ To load a tree as **ul - li** html tree use:
         ->createQueryBuilder()
         ->select('node')
         ->from('Entity\Category', 'node')
-        ->orderBy('node.root, node.left', 'ASC')
+        ->orderBy('node.root, node.lft', 'ASC')
         ->where('node.root = 1')
         ->getQuery()
     ;