well it is working now, and i think i found a bug.
Whend var $cacheQueries = true; is defined in model with tree
behaviour script halts server, xdebug report:
Fatal error: Maximum function nesting level of '100' reached.

On Oct 20, 12:11 pm, Aurimas <[email protected]> wrote:
> How can i order  "MPTT" tree? I am using tree behaviour and currently
> data is ordered by "lft" field.
> I want to reorder tree by name (ASC)
>
> Was trying $this->Cat->reorder(array('field' =>'Cat.name');
> And it generates query:
>
> SELECT `Cat`.`id`, `Cat`.`name`, `Cat`.`lft`, `Cat`.`rght` FROM `cats`
> AS `Cat` WHERE 1 = 1 AND `Cat`.`parent_id` IS NULL ORDER BY
> `Cat`.`name` ASC
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to