Allow XML entity loader for MDB2 schema loader

This commit is contained in:
Vincent Petry 2014-03-03 11:31:46 +01:00
parent dc0a7428bd
commit 762b0d9510
1 changed files with 2 additions and 0 deletions

View File

@ -41,7 +41,9 @@ class MDB2SchemaReader {
*/
public function loadSchemaFromFile($file) {
$schema = new \Doctrine\DBAL\Schema\Schema();
$loadEntities = libxml_disable_entity_loader(false);
$xml = simplexml_load_file($file);
libxml_disable_entity_loader($loadEntities);
foreach ($xml->children() as $child) {
/**
* @var \SimpleXMLElement $child