LdapTools\Object\LdapObjectRepository::findBy PHP Method

findBy() public method

public findBy ( array $attributes ) : mixed
$attributes array
return mixed
    public function findBy(array $attributes)
    {
        $query = $this->buildLdapQuery()->where($attributes)->getLdapQuery();
        return $this->hydrationMode ? $query->execute($this->hydrationMode) : $query->execute();
    }