Fix display of supplier products and offerings - wasnt including all services
This commit is contained in:
@@ -20,11 +20,11 @@ abstract class Type extends Model
|
||||
/**
|
||||
* The product that sells this type
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
|
||||
*/
|
||||
public function product()
|
||||
public function products()
|
||||
{
|
||||
return $this->morphOne(Product::class, null,'model','model_id');
|
||||
return $this->morphMany(Product::class, null,'model','model_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user