diff --git a/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php b/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php index e69f6f6b2..dfbded8a4 100644 --- a/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php +++ b/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php @@ -97,10 +97,13 @@ class DefaultQuoteStrategy implements QuoteStrategy public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform) { $schema = ''; - if (isset($association['joinTable']['schema']) && null !== $association['joinTable']['schema']) { + + if (isset($association['joinTable']['schema'])) { $schema = $association['joinTable']['schema'] . '.'; } + $tableName = $association['joinTable']['name']; + if (isset($association['joinTable']['quoted'])) { $tableName = $platform->quoteIdentifier($tableName); }