/** * @return \yii\db\ActiveQuery */ public function getCOMPANY() { return $this->hasOne(COMPANIES::className(), ['COMPANY_ID' => 'COMPANY_ID']); }