DependencyInjection/BaseContainerAccessor.php
protected function getObjectRepository(string $entityNamespace): ? ObjectRepository
    {
        return $this
            ->get('base.object_repository_provider')
            ->getObjectRepositoryByEntityNamespace(
                $this->locateEntity($entityNamespace)
            );
    }
protected function getObjectRepository(string $entityNamespace): ? ObjectRepository
    {
        return $this
            ->get('base.object_repository_provider')
            ->getObjectRepositoryByEntityNamespace(
                $this->locateEntity($entityNamespace)
            );
    }
protected function getObjectRepository ( string $ entityNamespace ) : ? ObjectRepository { return $ this -> get ( 'base.object_repository_provider' ) -> getObjectRepositoryByEntityNamespace ( $ this -> locateEntity ( $ entityNamespace ) ) ; }
Get object repository given an entity namespace.

@param string $entityNamespace

@return ObjectRepository|null
Get object repository given an entity namespace .