Thanks It works great!.
2009/5/31 delocalizer <[email protected]> > > or: > TreeModel->query('SELECT * FROM model_things WHERE model_things + 1 = > model_things.rght'). > 'TreeModel' is obviously the name of your model that behaves as Tree > and 'model_things' is its db table. > > 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 -~----------~----~----~----~------~----~------~--~---
