Hi,
milestone hasMany tasks. task belongs to member. I want to get all
tasks that belong to member_id 1, but I want the returned array to be
organized so milestone is first, with tasks in the second level of the
array. How to do it?
My end goal is to display results like:
foreach $milestones as $milestone {
(output milestone info)
foreach $milestone['Task'] as $task {
(output task info)
}
}
$this->Milestone->findAll() returns it the way I want, but I need to
filter it by Milestone.Task.member_id ....
Any suggestions? I know of ways around it (thanks to alkemann), but I
though I could pass that filter into the findAll function..?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---