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