Explorar el Código

Update doc/tree.md

An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Argument 3 passed to Gedmo\Tree\Entity\Repository\AbstractTreeRepository::childrenHierarchy() must be an array, boolean given, called in..

antek hace 13 años
padre
commit
e53974d817
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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