Say I have two models, Foo belongsTo Bar:
$this->Foo->find('first',array(
'conditions'=>array(
'barRowNumber'=>$barRowNumber,
'fooRowNumber'=>$fooRowNumber)));
I can't just do the auto_increment id because they skip around when I add and delete records. So how can I use row number as a parameter for a find query in CakePHP?
$this->Foo->id = $value
is the key$this->Foo->findbyYourValue
will do