Allow XML entity loader for MDB2 schema loader
This commit is contained in:
parent
dc0a7428bd
commit
762b0d9510
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue