weizong song 2 years ago
parent 4cc9b9e6fe
commit 50979afce2

@ -44,7 +44,7 @@ class OrderItems extends SoftDeletesModel
public function product()
{
return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id");
return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id")->withTrashedParents();
}
public function productItem()

Loading…
Cancel
Save