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