hi thank by this input, but it won't work with entities that have attributes like entity in my particular entity i add this solution. obviously i think it could change depence entity name : 
  protected function isExcluded($match)
    {

        if (isset($this->excludeField)) {

            $methodName = 'get' . ucfirst($this->excludeField);

            if (method_exists($match, $methodName)) {
                $checkAgainst = $match->{$methodName}();

                if (!in_array($checkAgainst, $this->excludedValues)) {
                    $checkAgainst = $checkAgainst->{$methodName . 'Id'}();
                    return in_array($checkAgainst, $this->excludedValues);
                }

                return in_array($checkAgainst, $this->excludedValues);
            } else {
                return false;
            }
        }

        return false;
    }