model = $query->applyRelation($this->relation); return $query->where(sprintf( "%s != '%s'", $this->getDbName(), Convert::raw2sql($this->getValue()) )); } }