What is the best way to add and order to Doctrine Nested Set Trees?
Posted
by murze
on Stack Overflow
See other posts from Stack Overflow
or by murze
Published on 2010-03-30T10:00:33Z
Indexed on
2010/03/30
10:03 UTC
Read the original article
Hit count: 502
What is the best way to add a sense of order in Doctrine Nested Sets?
The documention contains several examples of how to get al the childeren of a specific node
$category->getNode()->getSiblings()
But how can I for example:
- change the position of the fourth sibling to the second position
- get only the second sibling
- add a sibling between the second and third child etc...
Do I have to manually add and ordercolumn to the model to do these operations?
© Stack Overflow or respective owner