Sorry for the double post there.
I also tried querying by the service_name rather than the id, and that
seemed to work better.
I also changed the loop a little bit (because of how I'm grabbing the
data in my view). This seems to work great. (Although, as you
mentioned, it's not sorted)
$result = $this->Contractor->Service->find("service_name = 'Web
Design'");
if ($result['Contractor'])
{
foreach ($result['Contractor'] as $r)
{
$data[]['Contractor'] = $r;
}
$this->set('data', $data);
}
else
{
$this->set('data', Array());
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---