No, you cannot order by related field in a find statement. You can,
however, set a default order clause on related data inside the Models.
If you need to vary that default join order, you'll need to
dynamically unbindModel, then bindModel with the new desired sort
order.

In your Sito model, set your default sort order like so:

    var $belongsTo = array(
        'Stato' => array(
            'order' => 'Stato.stato ASC',
        ));

HTH.

On Jun 6, 6:48 am, fain182 <fain...@gmail.com> wrote:
> no one knows?
> is it not important?
>
> --
> pietro
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to