Commit 1a08dd2d authored by jwage's avatar jwage

[2.0][DDC-81] Fixes issue with wrong class names when using sub-namespaces

parent fdd1954a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment