[WIP] Refactor models to better lisibility and speed
This commit is contained in:
@@ -48,7 +48,7 @@ class Article extends Model implements HasMedia
|
||||
|
||||
public function prices()
|
||||
{
|
||||
return $this->hasManyThrough('App\Models\Shop\ArticlePrice','App\Models\Shop\ArticleAttribute');
|
||||
return $this->hasMany('App\Models\Shop\Price');
|
||||
}
|
||||
|
||||
public function product()
|
||||
|
||||
Reference in New Issue
Block a user