Browse Source

Merge pull request #414 from chrisjohnson00/patch-1

Update doc/tree.md
Gediminas Morkevicius 12 years ago
parent
commit
3881e19cc9
1 changed files with 2 additions and 2 deletions
  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
     )
 );
 ```