Hi Jorge; Easiest way is to do a find with condition that TreeModel.lft+1 = TreeModel.rght
On May 31, 8:42 am, Jorge Horacio Cué Cantú <[email protected]> wrote: > Hello, > > I have a system with a Model behaving as Tree, the question is. > I need to get a list of rows with out children meaning records that are > leafs in the tree. > Is there a way to accomplish that? > > Of course It is the "brute force method", but since the tree might be very > large, I rather have a most efficient way. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
