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