src/Doctrine/PHPCR/ElasticaToModelTransformer.php
protected function findByIdentifiers(array $identifierValues, $hydrate)
    {
        return $this->registry
            ->getManager()
            ->getRepository($this->objectClass)
            ->findMany($identifierValues)
            ->toArray();
    }
protected function findByIdentifiers(array $identifierValues, $hydrate)
    {
        return $this->registry
            ->getManager()
            ->getRepository($this->objectClass)
            ->findMany($identifierValues)
            ->toArray();
    }
Fetch objects for theses identifier values.

@param array $identifierValues ids values
@param bool  $hydrate          whether or not to hydrate the objects, false returns arrays

@return array of objects or arrays