From eefa3b2e53fe694cc2638ac1a2c4bddb2899eb2a Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 14 Jan 2015 18:06:29 +0100 Subject: [PATCH] #881 DDC-2825 - correcting YAML driver implementation (wasn't using extracted schema) --- lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php index be1cd2ed0ff..ffeee6df656 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php @@ -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) {