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

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

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

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

        return $indices;
    }
{@inheritdoc}