Created
December 13, 2015 18:49
-
-
Save doctrinebot/7aea6e7b9065b0ea78d1 to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DDC-81 - https://github.com/doctrine/doctrine2/issues/5326
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php | |
index 5297f03..ece141c 100644 | |
--- lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php | |
+++ lib/Doctrine/ORM/Tools/Export/Driver/AnnotationExporter.php | |
@@ -200,7 +200,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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment