RE: [PEAR] Tree/Dynamic_DBnested (Urgent)
| From: | Joseph Blythe | Date: | Mon, 28 Jul 2003 09:28:57 +0000 |
| Subject: | RE: [PEAR] Tree/Dynamic_DBnested (Urgent) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6859@lists.php.net to get a copy of this message | ||
Hi Wolfram,
Sorry for the belated reply our dsl modem decided to die on us so I guess
this wasnt as urgent as I thought it was :)
>
> the update method does the following first:
> // jsut to be sure nothing gets screwed up :-)
> unset($newValues[$this->_getColName('left')]);
> unset($newValues[$this->_getColName('right')]);
> unset($newValues[$this->_getColName('parentId')]);
> there you can see it removes the left, right and parent-ID before
> updating the data in the DB. This is necessary, since updating any of
> these values would result in screwing up the tree, since many other
> rows in the db might be affected.
> For changing the parent please use the method move().
Oh okay I will try using the move method instead, thankyou :)
>
> Would it make sense to enhance the update() method?
Let me get back to you on this, I will see how easy it is :)
Regards,
Joseph