Example #1
0
 public function searchAll($params)
 {
     $query = Pendidikan::find()->JoinWith('emp', true, 'INNER JOIN')->JoinWith('user', true, 'INNER JOIN');
     //->Where(['a0001.EMP_ID'=>'LG.0005']);
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     return $dataProvider;
 }
Example #2
0
 public function getPen()
 {
     return $this->hasOne(Pendidikan::className(), ['EMP_ID' => 'EMP_ID']);
     //return $this->hasMany(Pendidikan::className(), ['EMP_ID' => 'EMP_ID']);
 }