Selaa lähdekoodia

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

Jérémy CROMBEZ 13 vuotta sitten
vanhempi
commit
247c0f1387
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()
     ;