protected function prepareAnrEquivalentQuery($value)
    {
        return $this->orFilter(function (Builder $query) use ($value) {
            $locateBy = [
                $this->schema->name(),
                $this->schema->email(),
                $this->schema->userId(),
                $this->schema->lastName(),
                $this->schema->firstName(),
                $this->schema->commonName(),
                $this->schema->displayName(),
            ];

            foreach ($locateBy as $attribute) {
                $query->whereEquals($attribute, $value);
            }
        });
    }
protected function prepareAnrEquivalentQuery($value)
    {
        return $this->orFilter(function (Builder $query) use ($value) {
            $locateBy = [
                $this->schema->name(),
                $this->schema->email(),
                $this->schema->userId(),
                $this->schema->lastName(),
                $this->schema->firstName(),
                $this->schema->commonName(),
                $this->schema->displayName(),
            ];

            foreach ($locateBy as $attribute) {
                $query->whereEquals($attribute, $value);
            }
        });
    }
protected function prepareAnrEquivalentQuery ( $ value ) { return $ this -> orFilter ( function ( Builder $ query ) use ( $ value ) { $ locateBy = [ $ this -> schema -> name ( ) , $ this -> schema -> email ( ) , $ this -> schema -> userId ( ) , $ this -> schema -> lastName ( ) , $ this -> schema -> firstName ( ) , $ this -> schema -> commonName ( ) , $ this -> schema -> displayName ( ) , ] ; foreach ( $ locateBy as $ attribute ) { $ query -> whereEquals ( $ attribute , $ value ) ; } } ) ; }
Creates an ANR equivalent query for LDAP distributions that do not support ANR.

@param string $value

@return Builder
Creates an ANR equivalent query for LDAP distributions that do not support ANR .