src/Bridge/Doctrine/EventListener/WriteListener.php
private function getManager(string $resourceClass, $data): ?ObjectManager
    {
        $objectManager = $this->managerRegistry->getManagerForClass($resourceClass);
        if (null === $objectManager || !\is_object($data)) {
            return null;
        }

        return $objectManager;
    }
private function getManager(string $resourceClass, $data): ?ObjectManager
    {
        $objectManager = $this->managerRegistry->getManagerForClass($resourceClass);
        if (null === $objectManager || !\is_object($data)) {
            return null;
        }

        return $objectManager;
    }
private function getManager ( string $ resourceClass , $ data ) : ? ObjectManager { $ objectManager = $ this -> managerRegistry -> getManagerForClass ( $ resourceClass ) ; if ( null === $ objectManager || ! \ is_object ( $ data ) ) { return null ; } return $ objectManager ; }
Gets the manager if applicable.
Gets the manager if applicable .