浏览代码

Update doc/tree.md

Correcting parameters on childrenHierarchy call
chrisjohnson00 13 年之前
父节点
当前提交
18f8a909e4
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
     )
 );
 ```