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