Form/ChoiceList/LdapObjectChoiceList.php
public function getChoicesForValues(array $values)
    {
        if (empty(array_filter($values))) {
            return [];
        }

        $choices = [];
        foreach ($values as $i => $value) {
            foreach ($this->ldapObjects as $ldapObject) {
                if ($ldapObject->has($this->id, $value)) {
                    $choices[$i] = $ldapObject;
                    break;
                }
            }
        }

        return $choices;
    }
public function getChoicesForValues(array $values)
    {
        if (empty(array_filter($values))) {
            return [];
        }

        $choices = [];
        foreach ($values as $i => $value) {
            foreach ($this->ldapObjects as $ldapObject) {
                if ($ldapObject->has($this->id, $value)) {
                    $choices[$i] = $ldapObject;
                    break;
                }
            }
        }

        return $choices;
    }
{@inheritdoc}