From 50979afce23390d18b4950fca7105da3ccfacb15 Mon Sep 17 00:00:00 2001 From: weizong song Date: Mon, 6 May 2024 10:58:08 +0800 Subject: [PATCH] up --- app/Models/OrderItems.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/OrderItems.php b/app/Models/OrderItems.php index 3a906f4..350ffce 100755 --- a/app/Models/OrderItems.php +++ b/app/Models/OrderItems.php @@ -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()