It works great!.
2009/5/31 delocalizer <conrad.leonard@hotmail.com>
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.
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment