From 3820fa57d38f103925724e13589b5feed89fb0a5 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 14 Jan 2015 17:33:17 +0100 Subject: [PATCH] #881 DDC-2825 - XML mappings should handle explicitly defined schema name --- lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 658d9e53e..29e1088ed 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -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) {