where($this->getPKField(), $uid); return $this->getEntity(); } public function getEntityByID(string $id): null | BoardEntity { $this->where('user_id', $id); return $this->getEntity(); } //create용 public function create(BoardEntity $entity): BoardEntity { $entity = $this->create_process($entity); //GID값이 PK랑 같은 값 전달 후 Entity 수정 $entity->gid = $entity->getPK(); $this->setFields(["gid"]); return $this->modify_process($entity); } //modify용 public function modify(BoardEntity $entity): BoardEntity { return $this->modify_process($entity); } }