Product class optimisation
This commit is contained in:
@@ -15,17 +15,8 @@ final class Generic extends Type implements ProductItem
|
||||
// The model that is referenced when this product is ordered
|
||||
protected string $order_model = ServiceGeneric::class;
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
/**
|
||||
* The offering supplied with this product
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasOne
|
||||
*/
|
||||
public function supplied()
|
||||
{
|
||||
return $this->hasOne(SupplierGeneric::class,'id','supplier_item_id');
|
||||
}
|
||||
// The model that the supplier supplies
|
||||
const SupplierModel = SupplierGeneric::class;
|
||||
|
||||
/* INTERFACES */
|
||||
|
||||
|
Reference in New Issue
Block a user