Skip to content

Instantly share code, notes, and snippets.

@doctrinebot
Created December 13, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doctrinebot/7aea6e7b9065b0ea78d1 to your computer and use it in GitHub Desktop.
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
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