2016-07-28 2 views
3

남자 어떻게 Where 조건문을 Where 문에 적용 할 수 있습니까? Cakephp 3 쿼리 OR 조건

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

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

답변