hi,
i have a query that pulls all the hasMany models associated to this
class. So, for example, Team hasMany Riders.

function roster($id)
        {
                //set recursive to 1 for team members
                $data = $this->Team->find($id,array("recursive"=>0));

                $this->set('data',$data);
                $this->layout = "js/json";
        }


if i printr the $data, i have one array for the team, and another for
all the riders...as i expected. But, how can i filter the Rider
results to be in ascending order from the nested models? i tried
"order"=>"Rider.name asc" in the find array options without luck

--

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=.


Reply via email to