_clientService) { $this->_clientService = new ClientService($this->request); } return $this->_clientService; } final public function getServiceService(): ServiceService { if (!$this->_serviceService) { $this->_serviceService = new ServiceService($this->request); } return $this->_serviceService; } final public function getLineService(): LineService { if (!$this->_lineService) { $this->_lineService = new LineService($this->request); } return $this->_lineService; } final public function getServerService(): ServerService { if (!$this->_serverService) { $this->_serverService = new ServerService($this->request); } return $this->_serverService; } protected function getFormFieldOption(string $field, array $options): array { switch ($field) { case 'clientinfo_uid': $temps = []; foreach ($this->getClientService()->getEntities() as $entity) { $temps[$entity->getPK()] = $entity->getTitle(); } $options[$field] = $temps; // dd($options); break; case 'serviceinfo_uid': $temps = []; foreach ($this->getServiceService()->getEntities() as $entity) { $temps[$entity->getPK()] = $entity->getTitle(); } $options[$field] = $temps; // dd($options); break; case 'lineinfo_uid': $temps = []; foreach ($this->getLineService()->getEntities() as $entity) { $temps[$entity->getPK()] = $entity->getTitle(); } $options[$field] = $temps; // dd($options); break; case 'serverinfo_uid': $temps = []; foreach ($this->getServerService()->getEntities() as $entity) { $temps[$entity->getPK()] = $entity->getTitle(); } $options[$field] = $temps; // dd($options); break; default: $options = parent::getFormFieldOption($field, $options); break; } return $options; } //Index,FieldForm관련 }