2014-11-12 12 views

risposta

0

Prova questo per CakePHP 3.x

$query = $restaurants 
    ->find() 
    ->where(['id IN' => $r_ids]); 
$query->all(); 
0

È inoltre possibile utilizzare il breve sintassi:

$result = $restaurants->find('all', 
      ['conditions' => ['id IN' =>$r_ids]] 
     )->all(); 
Problemi correlati