DB_NestedSet getBranch
| From: | Arnaud Limbourg | Date: | Fri, 26 Sep 2003 15:20:23 +0000 |
| Subject: | DB_NestedSet getBranch | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8065@lists.php.net to get a copy of this message | ||
Hi,
I noticed that getBranch returns same-level nodes. Is this intentional ? I was expecting getBranch to return ... a branch ;)
I mean, root is 1, 36 and 40 are on the same level, 37 38 and 39 are children of each other (39 is child of 38 which is child of 37)
Running a getBranch on node 39 returns 1, 36, 40, 37, 38, 39
36 and 40 are both on level 2. I was expecting 1, 36, 37, 38, 39 since this composes a branch.
Do i make sense ? If so, any idea how i can get what i need ?
Arnaud.