So I’ve implemented CakePHP’s Tree Behavior
$this->Model->moveUp(4, 1) (or whatever I pass in) returns false. I have copy and pasted from the book to try and troubleshoot this.
I’ve verified that a record exists with the id in the database and that it can be moved both up and down in the tree, however the function always returns false.
Anyone have any ideas? I’m stumped.
I would try
TreeBehavior::verify()andTreeBehavior::reorderin this case, to make shure the tree structure is correct.