protected static function getEntityFullName(\ReflectionClass $headRefClass, $name = null) {
        if($name && $name[0] !== "\\") {
            $ns = $headRefClass->getNamespaceName();
            if($ns) { 
                $name = $ns."\\".$name; 
            }
        } else {
            $name = $headRefClass->getName();
        }
        if(substr($name, 0, 15) === "Proxies\\__CG__\\") {
            $name = substr($name, 15);
        }
        return $name;        
    }
protected static function getEntityFullName(\ReflectionClass $headRefClass, $name = null) {
        if($name && $name[0] !== "\\") {
            $ns = $headRefClass->getNamespaceName();
            if($ns) { 
                $name = $ns."\\".$name; 
            }
        } else {
            $name = $headRefClass->getName();
        }
        if(substr($name, 0, 15) === "Proxies\\__CG__\\") {
            $name = substr($name, 15);
        }
        return $name;        
    }
protected static function getEntityFullName ( \ ReflectionClass $ headRefClass , $ name = null ) { if ( $ name && $ name [ 0 ] !== "\\" ) { $ ns = $ headRefClass -> getNamespaceName ( ) ; if ( $ ns ) { $ name = $ ns . "\\" . $ name ; } } else { $ name = $ headRefClass -> getName ( ) ; } if ( substr ( $ name , 0 , 15 ) === "Proxies\\__CG__\\" ) { $ name = substr ( $ name , 15 ) ; } return $ name ; }
Doctrine replaces Entity class with Proxy class, so remove proxy namespace from results.
Doctrine replaces Entity class with Proxy class so remove proxy namespace from results .