I'm using tree behaviour and want to remove a node from the tree
without deleting its children.

I'm having trouble getting this to work. The manual says
'removeFromTree()' and little else. It seems from the few snippets I
googled that it takes id as a parameter. Logical, but does nothing.

The API says removefromtree( Model, Id, Delete) note the lack of
camelcase. This one just errors:

    Warning: Warning (2):  The argument should be an array in [CORE/
cake/libs/model/behaviors/tree.php, line 676]

Can anybody show me a snippet of something that works?

I can use delete(), but I'd like the control promised by
removefromtree.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to