diff --git a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php index 658d9e53e84..29e1088ed07 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php @@ -86,12 +86,12 @@ public function loadMetadataForClass($className, ClassMetadata $metadata) // 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) {