value) || ctype_digit((string) $this->value)) { $this->query->beginOr(); $this->query->eq(TaskModel::TABLE.'.category_id', $this->value); $this->query->eq(CategoryModel::TABLE.'.name', $this->value); $this->query->closeOr(); } elseif ($this->value === 'none') { $this->query->eq(TaskModel::TABLE.'.category_id', 0); } else { $this->query->eq(CategoryModel::TABLE.'.name', $this->value); } return $this; } }