Guys, how can I apply the OR condition in the following Where statement?
$this->IbCommisions->find()->matching(
'Users.Accounts',function ($q) {
return $q->where(['IbCommisions.ib_id' => $this->userid, 'Users.country_id' => $this->request->data['country']]);
}
To become something like
(['IbCommisions.ib_id' => $this->userid OR 'Users.country_id' => $this->request->data['country']])
source
share