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