[2.0][DDC-81] Fixes issue with wrong class names when using sub-namespaces
This commit is contained in:
parent
fdd1954a7b
commit
1a08dd2d90
@ -201,7 +201,7 @@ class AnnotationExporter extends AbstractExporter
|
||||
|
||||
private function _getClassName($metadata)
|
||||
{
|
||||
if ($pos = strpos($metadata->name, '\\')) {
|
||||
if ($pos = strrpos($metadata->name, '\\')) {
|
||||
return substr($metadata->name, $pos + 1, strlen($metadata->name));
|
||||
} else {
|
||||
return $metadata->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user