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