src/Entity/Savers/EntitySaverFactory.php
private function getEntityNamespace(EntityInterface $entity): string
    {
        if ($entity instanceof Proxy) {
            $proxyFqn  = \get_class($entity);
            $namespace = $this->entityManager->getConfiguration()->getProxyNamespace();
            $marker    = \Doctrine\Common\Persistence\Proxy::MARKER;

            return str_replace($namespace . '\\' . $marker . '\\', '', $proxyFqn);
        }

        return $this->namespaceHelper->getObjectFqn($entity);
    }
private function getEntityNamespace(EntityInterface $entity): string
    {
        if ($entity instanceof Proxy) {
            $proxyFqn  = \get_class($entity);
            $namespace = $this->entityManager->getConfiguration()->getProxyNamespace();
            $marker    = \Doctrine\Common\Persistence\Proxy::MARKER;

            return str_replace($namespace . '\\' . $marker . '\\', '', $proxyFqn);
        }

        return $this->namespaceHelper->getObjectFqn($entity);
    }
private function getEntityNamespace ( EntityInterface $ entity ) : string { if ( $ entity instanceof Proxy ) { $ proxyFqn = \ get_class ( $ entity ) ; $ namespace = $ this -> entityManager -> getConfiguration ( ) -> getProxyNamespace ( ) ; $ marker = \ Doctrine \ Common \ Persistence \ Proxy :: MARKER ; return str_replace ( $ namespace . '\\' . $ marker . '\\' , '' , $ proxyFqn ) ; } return $ this -> namespaceHelper -> getObjectFqn ( $ entity ) ; }
It is possible to pass a proxy to the class which will trigger a fatal error due to autoloading problems.

This will resolve the namespace to that of the entity, rather than the proxy. May need to update this to handle
other cases

@param EntityInterface $entity

@return string
It is possible to pass a proxy to the class which will trigger a fatal error due to autoloading problems .