Skip to content

Commit

Permalink
#881 DDC-2825 - XML mappings should handle explicitly defined schema …
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
Ocramius committed Jan 14, 2015
1 parent 941bfca commit 3820fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3820fa5

Please sign in to comment.