fix(model): salah model untuk relasi ke OrderItem
This commit is contained in:
parent
e7f5efb0cf
commit
7726ab1769
@ -50,6 +50,6 @@ public function purchaseItems(): MorphMany
|
||||
|
||||
public function items(): MorphMany
|
||||
{
|
||||
return $this->morphMany(PurchaseItem::class, 'orderable');
|
||||
return $this->morphMany(OrderItem::class, 'orderable');
|
||||
}
|
||||
}
|
||||
|
||||
@ -60,6 +60,6 @@ public function purchaseItems(): MorphMany
|
||||
|
||||
public function items(): MorphMany
|
||||
{
|
||||
return $this->morphMany(PurchaseItem::class, 'orderable');
|
||||
return $this->morphMany(OrderItem::class, 'orderable');
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,6 +47,6 @@ public function purchaseItems(): MorphMany
|
||||
|
||||
public function items(): MorphMany
|
||||
{
|
||||
return $this->morphMany(PurchaseItem::class, 'orderable');
|
||||
return $this->morphMany(OrderItem::class, 'orderable');
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user