2016-07-28 9 views
3

Jungs, wie kann ich eine OR-Bedingung in der folgenden Where-Anweisung anwenden?CakePHP 3 Abfrage ODER Bedingung

$this->IbCommisions->find()->matching(
    'Users.Accounts',function ($q) { 
     return $q->where(['IbCommisions.ib_id' => $this->userid, 'Users.country_id' => $this->request->data['country']]); 
} 

Um so etwas wie

(['IbCommisions.ib_id' => $this->userid OR 'Users.country_id' => $this->request->data['country']]) 

Antwort