From 2b1d4a4b0f8c821450f804c790f4cd2941a73a6a Mon Sep 17 00:00:00 2001 From: "choi.jh" Date: Wed, 12 Nov 2025 16:44:19 +0900 Subject: [PATCH] trafficmonitor init...2 --- app/Services/CommonService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/CommonService.php b/app/Services/CommonService.php index f23c213..e4be18c 100644 --- a/app/Services/CommonService.php +++ b/app/Services/CommonService.php @@ -134,6 +134,8 @@ abstract class CommonService //생성용 protected function create_process(array $formDatas): CommonEntity { + //PrimaryKey 필드는 생성에서 제외 + unset($formDatas[$this->model->primaryKey]); $result = $this->model->insert($formDatas, $this->model->useAutoIncrement()); if ($result === false) { $errors = $this->model->errors();