Fixes on attributes on prices
This commit is contained in:
@@ -7,16 +7,16 @@ use Illuminate\Database\Eloquent\Model;
|
||||
class ArticleAttribute extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'shop_article_attribute_attributes';
|
||||
protected $table = 'shop_article_attributes';
|
||||
|
||||
public function Price()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\ArticlePrice');
|
||||
return $this->belongsTo('App\Models\Shop\ArticlePrice','article_price_id');
|
||||
}
|
||||
|
||||
public function Value()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\ArticleAttribute');
|
||||
return $this->belongsTo('App\Models\Shop\ArticleAttributeValue','attribute_value_id');
|
||||
}
|
||||
|
||||
public function scopeByPrice($query, $article_price_id)
|
||||
|
||||
Reference in New Issue
Block a user