/** * @return \yii\db\ActiveQuery */ public function getEmployee() { return $this->hasOne(MiEmployee::className(), ['employee_id' => 'employee_id']); }
/** * @return \yii\db\ActiveQuery */ public function getMiEmployees() { return $this->hasMany(MiEmployee::className(), ['position_id' => 'position_id']); }