I use nested set with doctrine 1.2.
Here is my example.
I got this tree
Category 1
Category 1.1
Category 1.2
Category 1.3
Category 1.4
Category 2
Category 2.1
Category 2.1.1
Category 2.1.2
Category 2.1.3
Situation
1 - how can I Move the Category 1.3 On top of Category 1.1
2 - How can I Move Category 1.4 INSIDE the Category 1.3
3 - How Can I Move 2.1 and his child INSIDE Category 1 and next to Category 1.1
Situation 1 Will give me:
Category 1
Category 1.3
Category 1.1
Category 1.2
Category 1.4
...
Situation 2 will give me:
Category 1
Category 1.1
Category 1.2
Category 1.3
Category 1.4
...
Situation 3 will give me:
Category 1
Category 1.1
Category 2
Category 2.1
Category 2.1.1
Category 2.1.2
Category 2.1.3
Category 1.2
Category 1.3
Category 1.4