PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 All 51 releases
← All changes | app/Models/ProductDetail.php +0 -14 1.6.3 → 1.7.1 View file →
@@ -121,22 +121,8 @@
121 121 {
122 122 return $this->hasMany(ProductVariation::class, 'post_id', 'post_id')->orderBy('serial_index', 'asc');
123 123 }
124 124
125 - public function attrMap(): HasMany
126 - {
127 - return $this->hasMany(AttributeRelation::class, 'object_id', 'id');
128 - }
129 -
130 -
131 - public static function boot()
132 - {
133 - parent::boot();
134 - static::deleting(function ($model) {
135 - $model->attrMap()->delete();
136 - });
137 - }
138 -
139 125 public function setDefaultMediaAttribute($value)
140 126 {
141 127 if (is_array($value) || is_object($value)) {
142 128 $this->attributes['default_media'] = json_encode($value);