Hello ! I'm aving trouble with rendering a tree using HYDRATE_ARRAY_HIERARCHY so it doesn't perform a lot of queries. Here is a snapshot of my table : http://cl.ly/e8fcdf2c805535cdde6d
"Présentation" had one child named "sous-presentation", from my backend I moved it so it become a child of "Enseignement spécialisé". As you can see, Sous-présentation's root_id is 3, left/rgt are corrects, level too. To render my tree, here is the query I'm using (from my Table class) : $this->createQuery('a')->execute(array(), Doctrine_Core::HYDRATE_ARRAY_HIERARCHY); result is stored in a var called $tree, and here's how I use it in my template : <?php foreach ($tree as $node) { echo $node['title'], '<br/>'; var_dump($node['__children']); } ?> And here's what I can see on my page : http://cl.ly/738f7f3d54c047b4cef0 "Sous-presentation" is still considered as a child of "Presentation" ! Am I missing something here? The weird thing is it's working as it's supposed to when I add all my items in a fixture file. Thanks a lot, I'm getting crazy here :( Romain -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en