field가 array 입니다.\n" . var_export($field, true)); } switch ($field) { case "user_uid": $rule = "if_exist|numeric"; break; default: $rule = parent::getFieldRule($action, $field); break; } return $rule; } public function getEntityByPK(string $uid): null|MyLogEntity { $this->where($this->getPKField(), intval($uid)); return $this->getEntity(); } //create용 public function create(array $formDatas = []): MyLogEntity { return $this->create_process(new MyLogEntity(), $formDatas); } //List 검색용 public function setList_WordFilter(string $word): void { $this->orLike(self::TABLE . self::TITLE, $word, 'both'); $this->orLike(self::TABLE . '.content', $word, 'both'); } }