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

        $values = [];
        foreach ($choices as $i => $choice) {
            $values[$i] = $choice->get($this->id);
        }

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

        $values = [];
        foreach ($choices as $i => $choice) {
            $values[$i] = $choice->get($this->id);
        }

        return $values;
    }
{@inheritdoc}