DependencyInjection/BaseContainerAccessor.php
public function findBy(
        string $entityNamespace,
        array $criteria
    ): array {
        return $this
            ->getObjectRepository($this->locateEntity($entityNamespace))
            ->findBy($criteria);
    }
public function findBy(
        string $entityNamespace,
        array $criteria
    ): array {
        return $this
            ->getObjectRepository($this->locateEntity($entityNamespace))
            ->findBy($criteria);
    }
public function findBy ( string $ entityNamespace , array $ criteria ) : array { return $ this -> getObjectRepository ( $ this -> locateEntity ( $ entityNamespace ) ) -> findBy ( $ criteria ) ; }
Get all entity instances.

@param string $entityNamespace
@param array  $criteria

@return array
Get all entity instances .