public function getDiscountCode() { return $this->hasOne(DiscountCode::className(), ['id' => 'discount_code_id']); }