public static function setApplicationDocumentManager(Application $application, ?string $dmName)
    {
        /** @var $registry ManagerRegistry */
        $registry = $application->getKernel()->getContainer()->get('doctrine_phpcr');
        $documentManager = $registry->getManager($dmName);

        $helperSet = $application->getHelperSet();
        $helperSet->set(new DocumentManagerHelper(null, $documentManager));
    }
public static function setApplicationDocumentManager(Application $application, ?string $dmName)
    {
        /** @var $registry ManagerRegistry */
        $registry = $application->getKernel()->getContainer()->get('doctrine_phpcr');
        $documentManager = $registry->getManager($dmName);

        $helperSet = $application->getHelperSet();
        $helperSet->set(new DocumentManagerHelper(null, $documentManager));
    }
public static function setApplicationDocumentManager ( Application $ application , ? string $ dmName ) { /** @var $registry ManagerRegistry */ $ registry = $ application -> getKernel ( ) -> getContainer ( ) -> get ( 'doctrine_phpcr' ) ; $ documentManager = $ registry -> getManager ( $ dmName ) ; $ helperSet = $ application -> getHelperSet ( ) ; $ helperSet -> set ( new DocumentManagerHelper ( null , $ documentManager ) ) ; }
Select which document manager should be used.
Select which document manager should be used .