1
0
mirror of synced 2025-01-31 04:21:44 +03:00

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

This commit is contained in:
jwage 2009-11-11 21:18:09 +00:00
parent fdd1954a7b
commit 1a08dd2d90

View File

@ -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;