dbmsv2 init...1

This commit is contained in:
choi.jh 2025-08-26 15:16:41 +09:00
parent c3740990ef
commit 9f236f1ed3
3 changed files with 8 additions and 7 deletions

View File

@ -84,7 +84,7 @@ class ServerController extends EquipmentController
$partDatas[$basePart] = [
"partinfo_uid" => $formDatas["partinfo_{$basePart}_uid"],
"cnt" => $this->request->getPost(index: "partinfo_{$basePart}_uid_cnt") ?? 1,
"extgra" => $this->request->getPost("partinfo_{$basePart}_uid_extra") ?? ""
"extra" => $this->request->getPost("partinfo_{$basePart}_uid_extra") ?? ""
];
}
$this->serverPartEntities = $this->getService()->createServerParts($entity, $partDatas);

File diff suppressed because one or more lines are too long

View File

@ -160,9 +160,9 @@ class ServerService extends EquipmentService
foreach (self::BaseParts as $basePart) {
$partDatas[$basePart]["serverinfo_uid"] = $entity->getPK();
$partDatas[$basePart]["serviceinfo_uid"] = $entity->getServiceInfoUID();
dd($partDatas);
$serverPartEntities[] = $this->getServerPartModel()->create($partDatas);
$serverPartEntities[] = $this->getServerPartModel()->create($partDatas[$basePart]);
}
// dd($serverPartEntities);
return $serverPartEntities;
}