Tree/Dynamic_DBnested (Urgent)

From: Date: Fri, 25 Jul 2003 03:56:20 +0000
Subject: Tree/Dynamic_DBnested (Urgent)
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6811@lists.php.net to get a copy of this message
Hello everyone, Just ran into a problem with Tree/Dynamic_DBnested was all working fine but now I can not update a node to change its parent, no errors are produced just refuses to cooperate, I beleive it may be a bug as I can manually update all the fields using phpMyAdmin, I am using Tree-0.2.4 and DB-1.4.0 example code below: snip---> $options = array( 'table' => 'categories', 'whereAddOn' => 'user_id=0', 'name' => 'name', 'parentId' => 'parent', 'order' => 'name'); $tree = Tree::setup('Dynamic_DBnested', $dsn, $options); $tree->debug = 1; $rootId = $tree->update('138', array( 'name' => 'test', 'parent' => 25, 'comment' => '', 'user_id' => 0, 'image' => '', 'flag' => 1)); if (PEAR::isError($rootId)) { echo "Error updating category: " . $rootId->getUserInfo(); exit; } else { echo "Category Updated!"; } <--snip So with the code above all fields except 'parent' will update fine I don't understand why no errors are produced ?? Anyone else have any problems like this ? Any help much appreciated, Regards, Joseph

« previous php.pear.general (#6811) next »