Fix supplier configuration

This commit is contained in:
Deon George 2022-08-05 22:21:17 +10:00
parent 17f07dafc0
commit ae3f97d890
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,6 @@ final class Email extends Type implements SupplierItem
public function products()
{
return $this->hasMany(ProductEmail::class,$this->table,'supplier_item_id','id');
return $this->hasMany(ProductEmail::class,'supplier_item_id','id');
}
}

View File

@ -20,6 +20,6 @@ final class Host extends Type implements SupplierItem
public function products()
{
return $this->belongsToMany(ProductHost::class,'supplier_item_id','id');
return $this->hasMany(ProductHost::class,'supplier_item_id','id');
}
}