                      $current = str_replace('\\', '/', $sourceFile);
 
                      if (strpos($current, $exclude) !== false) {
-@@ -253,4 +249,38 @@
+@@ -253,4 +249,43 @@
 
          return $classes;
      }

--- a/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php	2016-08-05 15:51:01.780648300 +0200
+++ b/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php	2016-08-05 15:09:53.487415400 +0200
@@ -218,14 +218,10 @@
             );


+
+        $stack = [];
+        $path = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, substr($path, 7));
+
+        if (DIRECTORY_SEPARATOR === substr($path, 0, 1)) {
+            array_push($stack, '');
+        }
+
+        foreach (explode(DIRECTORY_SEPARATOR, $path) as $folder) {
+            if (0 === strlen($folder) || '.' === $folder) {
+                continue;
