1 to 3 of 3
I looked around a bit to find out how, but the example in AkActiveRecord does not cover that.
Perhaps an updated example like the below should be used in it's place?
$this->users = $this->User->find('all', array(
'conditions' => array('first_name = ? AND last_name = ?',$this->params['first_name'],$this->params['last_name'])
));
submit DOC-patches in the TRAC if you like.
somewhere around line 100 in AkActiveRecord.php, we actually have
findFirst("user_name = ? AND password = ?", $user_name, $password);
Yup, that was the example I was referring to. It wasn't real clear (at least to me) how to do it in a find function. Thanks though.
1 to 3 of 3