Fix supplier configuration
This commit is contained in:
parent
17f07dafc0
commit
ae3f97d890
@ -20,6 +20,6 @@ final class Email extends Type implements SupplierItem
|
|||||||
|
|
||||||
public function products()
|
public function products()
|
||||||
{
|
{
|
||||||
return $this->hasMany(ProductEmail::class,$this->table,'supplier_item_id','id');
|
return $this->hasMany(ProductEmail::class,'supplier_item_id','id');
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -20,6 +20,6 @@ final class Host extends Type implements SupplierItem
|
|||||||
|
|
||||||
public function products()
|
public function products()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(ProductHost::class,'supplier_item_id','id');
|
return $this->hasMany(ProductHost::class,'supplier_item_id','id');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user