diff --git a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php index 9a4ee054c..7075ee646 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AbstractFileDriver.php @@ -71,15 +71,5 @@ abstract class AbstractFileDriver extends FileDriver implements Driver protected function findMappingFile($className) { return $this->locator->findMappingFile($className); - $fileName = str_replace('\\', '.', $className) . $this->_fileExtension; - - // Check whether file exists - foreach ((array) $this->_paths as $path) { - if (file_exists($path . DIRECTORY_SEPARATOR . $fileName)) { - return $path . DIRECTORY_SEPARATOR . $fileName; - } - } - - throw MappingException::mappingFileNotFound($className, $fileName); } } \ No newline at end of file