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