1
0
mirror of synced 2025-01-18 22:41:43 +03:00

#881 DDC-2825 - XML mappings should handle explicitly defined schema name

This commit is contained in:
Marco Pivetta 2015-01-14 17:33:17 +01:00
parent 941bfca68c
commit 3820fa57d3

View File

@ -86,12 +86,12 @@ class XmlDriver extends FileDriver
// Split schema and table name from a table name like "myschema.mytable"
if (strpos($tableName, '.') !== false) {
list($schemaName, $tableName) = explode('.', $tableName);
list($metadata->table['schema'], $tableName) = explode('.', $tableName);
}
}
if (isset($xmlRoot['schema'])) {
$schemaName = (string)$xmlRoot['schema'];
$metadata->table['schema'] = (string) $xmlRoot['schema'];
}
if (null !== $tableName) {