瀏覽代碼

Merge pull request #414 from chrisjohnson00/patch-1

Update doc/tree.md
Gediminas Morkevicius 12 年之前
父節點
當前提交
3881e19cc9
共有 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
     )
 );
 ```