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