/** * @return \yii\db\ActiveQuery */ public function getActivity() { return $this->hasOne(SalesActivity::className(), ['id' => 'activity_id']); }