Jelajahi Sumber

Update doc/tree.md

Correcting parameters on childrenHierarchy call
chrisjohnson00 13 tahun lalu
induk
melakukan
18f8a909e4
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      doc/tree.md

+ 2 - 2
doc/tree.md

@@ -542,10 +542,10 @@ $repo = $em->getRepository('Entity\Category');
 $htmlTree = $repo->childrenHierarchy(
     null, /* starting from root nodes */
     false, /* load all children, not only direct */
-    true, /* render html */
     array(
         'decorate' => true,
-        'representationField' => 'slug'
+        'representationField' => 'slug',
+        'html' => true
     )
 );
 ```