浏览代码

Merge pull request #402 from Antek88/patch-2

Update doc/tree.md
Gediminas Morkevicius 13 年之前
父节点
当前提交
4f86fe41d1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      doc/tree.md

+ 1 - 2
doc/tree.md

@@ -557,7 +557,6 @@ $htmlTree = $repo->childrenHierarchy(
 $repo = $em->getRepository('Entity\Category');
 $options = array(
     'decorate' => true,
-    'representationField' => 'slug',
     'rootOpen' => '<ul>',
     'rootClose' => '</ul>',
     'childOpen' => '<li>',
@@ -569,9 +568,9 @@ $options = array(
 $htmlTree = $repo->childrenHierarchy(
     null, /* starting from root nodes */
     false, /* load all children, not only direct */
-    true, /* render html */
     $options
 );
+
 ```
 
 ### Generate own node list