applyRelation($query); return $query->where(sprintf( "%s LIKE '%%%s%%'", $this->getDbName(), Convert::raw2sql($this->getValue()) )); } public function isEmpty() { return $this->getValue() == null || $this->getValue() == ''; } } ?>