Теперь я хочу получить только список всех дочерних элементов.
Мой код
Код: Выделить всё
$pages = $this->getDoctrine()->getRepository('BloggerBlogBundle:Page');
$nodes = $pages->getChildren();
$parent = $nodes[0]; //get Parent node
$rootNodes = $parent->getChildren(); // get Children of Parent Nodes
foreach($rootNodes as $node)
{
$nodes = $node->getChildren(); // get Children of Children
}
Какую ошибку я здесь делаю? Пожалуйста помогите, спасибо!!!
Подробнее здесь: https://stackoverflow.com/questions/269 ... nsion-tree