value) || (strlen($this->value) > 1 && $this->value{0} === '#' && ctype_digit(substr($this->value, 1)))) { $this->query->beginOr(); $this->query->eq(SubtaskModel::TABLE.'.id', str_replace('#', '', $this->value)); $this->query->ilike(SubtaskModel::TABLE.'.title', '%'.$this->value.'%'); $this->query->closeOr(); } else { $this->query->ilike(SubtaskModel::TABLE.'.title', '%'.$this->value.'%'); } return $this; } }