Skip to content

Commit

Permalink
#881 DDC-2825 - correcting YAML driver implementation (wasn't using e…
Browse files Browse the repository at this point in the history
…xtracted schema)
  • Loading branch information
Ocramius committed Jan 14, 2015
1 parent 0446721 commit eefa3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,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($table['schema'], $tableName) = explode('.', $tableName, 2);
}
}

if (isset($element['schema'])) {
$schemaName = $element['schema'];
$table['schema'] = $element['schema'];
}

if (null !== $tableName) {
Expand Down

0 comments on commit eefa3b2

Please sign in to comment.