On Tue, May 27, 2008 at 1:51 PM, Mike <[EMAIL PROTECTED]> wrote:
>
> Ok, I think I solved it. The proper value was being passed into the
> function after all. The problem was in how I was structuring my find
> in the controller function. I had:
>
> $conditions = array();
> $conditions['Transaction']['clientID'] = "= {$theclientid}";
> $results = $this->Transaction->findAll($conditions);
>
> Which does not work (any ideas why???). However, this does work:
Conditions are usually done as key => value pairs.
$conditions = array('clientID' => $theclientid);
$results = $this->Transaction->find('all', compact('conditions'));
Hope that helps.
--
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---