From 4b99cf7ee2eb3b18622408b21ebfea5beebb78cb Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 30 Jun 2021 11:50:55 +0530 Subject: [PATCH] Removed Relationship --- .../src/Models/ProductAttributeValue.php | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/packages/Webkul/Product/src/Models/ProductAttributeValue.php b/packages/Webkul/Product/src/Models/ProductAttributeValue.php index 562fc07b3..615baf5e5 100755 --- a/packages/Webkul/Product/src/Models/ProductAttributeValue.php +++ b/packages/Webkul/Product/src/Models/ProductAttributeValue.php @@ -4,14 +4,20 @@ namespace Webkul\Product\Models; use Illuminate\Database\Eloquent\Model; use Webkul\Attribute\Models\AttributeProxy; -use Webkul\Channel\Models\ChannelProxy; use Webkul\Product\Contracts\ProductAttributeValue as ProductAttributeValueContract; class ProductAttributeValue extends Model implements ProductAttributeValueContract { + /** + * Indicates if the model should be timestamped. + * + * @var bool + */ public $timestamps = false; /** + * Attribute type fields. + * * @var array */ public static $attributeTypeFields = [ @@ -28,10 +34,14 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra 'checkbox' => 'text_value', ]; + /** + * The attributes that are mass assignable. + * + * @var array + */ protected $fillable = [ 'product_id', 'attribute_id', - 'channel_id', 'locale', 'channel', 'text_value', @@ -58,12 +68,4 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra { return $this->belongsTo(ProductProxy::modelClass()); } - - /** - * Get the channel that owns the attribute value. - */ - public function channel() - { - return $this->belongsTo(ChannelProxy::modelClass()); - } -} \ No newline at end of file +}