dbmsv2 init...1
This commit is contained in:
parent
c3740990ef
commit
9f236f1ed3
@ -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
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user