Sunday 03 July 2005 2:12:14 am
Timmothy: I have used this code, wich works well to fetch the node, provided you know the object id. (In my case, the object id of a user account, $userID).
$object = eZContentObject::fetch($userID);
$node = eZContentObjectTreeNode::fetch($object->attribute('main_node_id'));
However, trying to move the node does not completely succeed. I am using this call:
$node->move($to_node_id);
Looking up the ezcontentobject_tree table, I find that parent_node_id and path_string have been correctly changed to the new location. The path_identification_string, however, refers to the old location. Consequently, the object is left in an unfinished state. When I open the object for editing, and then saves it, it gets cleaned up, but falls back to the old location. I have searched the forum, and seen "$node->move($to_node_id);" several places, but to me it doesn't seem to work properly. Any experience with this?
|