public function findByIds(array $ids)
    {
        $entities = [];

        for ($i = 0; $i < count($this->registries); $i++) {
            /** @var RegistryInterface $registry */
            $registry = $this->registries[ $i ];
            $found = $registry->findByKeys($ids);
            $entities = array_merge($entities, $found);

            $this->updateRegistries($found, $i - 1);

            if (count($entities) === count($ids)) {
                break;
            }
        }

        return $entities;
    }
public function findByIds(array $ids)
    {
        $entities = [];

        for ($i = 0; $i < count($this->registries); $i++) {
            /** @var RegistryInterface $registry */
            $registry = $this->registries[ $i ];
            $found = $registry->findByKeys($ids);
            $entities = array_merge($entities, $found);

            $this->updateRegistries($found, $i - 1);

            if (count($entities) === count($ids)) {
                break;
            }
        }

        return $entities;
    }
public function findByIds ( array $ ids ) { $ entities = [ ] ; for ( $ i = 0 ; $ i < count ( $ this -> registries ) ; $ i ++ ) { /** @var RegistryInterface $registry */ $ registry = $ this -> registries [ $ i ] ; $ found = $ registry -> findByKeys ( $ ids ) ; $ entities = array_merge ( $ entities , $ found ) ; $ this -> updateRegistries ( $ found , $ i - 1 ) ; if ( count ( $ entities ) === count ( $ ids ) ) { break ; } } return $ entities ; }
Finds a list of entities by their ids

@param array $ids

@return array
Finds a list of entities by their ids