diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 39af412c9..0d72c2087 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -838,7 +838,7 @@ class XmlDriver extends FileDriver protected function loadMappingFile($file) { $result = []; - $xmlElement = simplexml_load_file($file); + $xmlElement = simplexml_load_string(file_get_contents($file)); if (isset($xmlElement->entity)) { foreach ($xmlElement->entity as $entityElement) {