From 1f4ea58abe318a46acac93b5f2a826309f6a1d4d Mon Sep 17 00:00:00 2001 From: Jing Li Date: Sun, 6 Aug 2023 13:32:04 +0800 Subject: [PATCH] Fix --- app/Models/RiceShrimpWeeklyPrice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/RiceShrimpWeeklyPrice.php b/app/Models/RiceShrimpWeeklyPrice.php index 75174ae..ba2c11c 100644 --- a/app/Models/RiceShrimpWeeklyPrice.php +++ b/app/Models/RiceShrimpWeeklyPrice.php @@ -17,7 +17,7 @@ class RiceShrimpWeeklyPrice extends Model public function weekObj() { - return $this->belongsTo(Keywords::class, 'week'); + return $this->belongsTo(Keywords::class, 'week', 'key'); } public function createdBy()