Handler/DomainFormConfigList.php
protected function findObjects(array $ids)
    {
        $foundObjects = $this->domain->getRepository()->findBy([
            $this->identifier => array_unique($ids),
        ]);
        $mapFinds = [];
        $objects = [];

        foreach ($foundObjects as $foundObject) {
            $id = $this->propertyAccessor->getValue($foundObject, $this->identifier);
            $mapFinds[$id] = $foundObject;
        }

        foreach ($ids as $i => $id) {
            $objects[$i] = $mapFinds[$id]
                ?? $this->domain->newInstance($this->defaultValueOptions);
        }

        return $objects;
    }
protected function findObjects(array $ids)
    {
        $foundObjects = $this->domain->getRepository()->findBy([
            $this->identifier => array_unique($ids),
        ]);
        $mapFinds = [];
        $objects = [];

        foreach ($foundObjects as $foundObject) {
            $id = $this->propertyAccessor->getValue($foundObject, $this->identifier);
            $mapFinds[$id] = $foundObject;
        }

        foreach ($ids as $i => $id) {
            $objects[$i] = $mapFinds[$id]
                ?? $this->domain->newInstance($this->defaultValueOptions);
        }

        return $objects;
    }
protected function findObjects ( array $ ids ) { $ foundObjects = $ this -> domain -> getRepository ( ) -> findBy ( [ $ this -> identifier => array_unique ( $ ids ) , ] ) ; $ mapFinds = [ ] ; $ objects = [ ] ; foreach ( $ foundObjects as $ foundObject ) { $ id = $ this -> propertyAccessor -> getValue ( $ foundObject , $ this -> identifier ) ; $ mapFinds [ $ id ] = $ foundObject ; } foreach ( $ ids as $ i => $ id ) { $ objects [ $ i ] = $ mapFinds [ $ id ] ?? $ this -> domain -> newInstance ( $ this -> defaultValueOptions ) ; } return $ objects ; }
Find the objects.

@param int[] $ids The record ids

@return array
Find the objects .