0
PHP Warning - yii \ base \ ErrorException缺少yii \ db \ Query :: join()的參數2,
代碼錯誤是什麼?請幫我PHP Warning - yii base ErrorException缺少yii db Query :: join()的參數2,
$query = new Query;
$dataProvider = new ActiveDataProvider([
'query'=> $query
->select(['vchr_name','vchr_actual_hours','vchr_worked_hours','fk_int_payroll_month','fk_int_payroll_year'])
->from('tbl_payroll')
->join(['INNER JOIN','tbl_employee', 'TblEmployee.pk_int_emp_id=TblPayroll.fk_int_emp_id'])
->where(['pk_int_payroll_id'=> $id])
->One(),
]);
謝謝你的工作.. –
我如何加入3個表格 –
只需使用一個 - >加入後你有 –