addClassPaths('Mylog'); } public function getFormService(): MylogForm { if ($this->formServiceInstance === null) { $this->formServiceInstance = new MylogForm(); $this->formServiceInstance->setAttributes([ 'pk_field' => $this->model->getPKField(), 'title_field' => $this->model->getTitleField(), 'table' => $this->model->getTable(), 'useAutoIncrement' => $this->model->useAutoIncrement(), 'class_path' => $this->getClassPaths(false) ]); } return $this->formServiceInstance; } public function getHelper(): MylogHelper { if ($this->helperInstance === null) { $this->helperInstance = new MylogHelper(); $this->helperInstance->setAttributes([ 'pk_field' => $this->model->getPKField(), 'title_field' => $this->model->getTitleField(), 'table' => $this->model->getTable(), 'useAutoIncrement' => $this->model->useAutoIncrement(), 'class_path' => $this->getClassPaths(false) ]); } return $this->helperInstance; } //기본 기능부분 public function create(object $dto): MylogEntity { if (!$dto instanceof MylogDTO) { throw new RuntimeException(__METHOD__ . "에서 오류발생:" . get_class($dto) . "는 사용할수 없습니다."); } return parent::create($dto); } public function modify($uid, object $dto): MyLogEntity { if (!$dto instanceof MylogDTO) { throw new RuntimeException(__METHOD__ . "에서 오류발생:" . get_class($dto) . "는 사용할수 없습니다."); } return parent::modify($uid, $dto); } }