diff --git a/Mapping/Driver/XmlDriver.php b/Mapping/Driver/XmlDriver.php
index <HASH>..<HASH> 100644
--- a/Mapping/Driver/XmlDriver.php
+++ b/Mapping/Driver/XmlDriver.php
@@ -60,7 +60,7 @@ class XmlDriver extends BaseXmlDriver
             }
         }
 
-        return array_merge(parent::getAllClassNames(), array_keys($this->_classCache));
+        return array_merge($classes, array_keys($this->_classCache));
     }
 
     public function getElement($className)
[DoctrineBundle] fixed regression