Allow XML entity loader for MDB2 schema loader
This commit is contained in:
parent
dc0a7428bd
commit
762b0d9510
|
@ -41,7 +41,9 @@ class MDB2SchemaReader {
|
||||||
*/
|
*/
|
||||||
public function loadSchemaFromFile($file) {
|
public function loadSchemaFromFile($file) {
|
||||||
$schema = new \Doctrine\DBAL\Schema\Schema();
|
$schema = new \Doctrine\DBAL\Schema\Schema();
|
||||||
|
$loadEntities = libxml_disable_entity_loader(false);
|
||||||
$xml = simplexml_load_file($file);
|
$xml = simplexml_load_file($file);
|
||||||
|
libxml_disable_entity_loader($loadEntities);
|
||||||
foreach ($xml->children() as $child) {
|
foreach ($xml->children() as $child) {
|
||||||
/**
|
/**
|
||||||
* @var \SimpleXMLElement $child
|
* @var \SimpleXMLElement $child
|
||||||
|
|
Loading…
Reference in New Issue