1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Allow to join non-public schema tables

This commit is contained in:
molchanoviv 2015-02-26 16:08:03 +03:00 committed by Marco Pivetta
parent 8f0b3398d3
commit f244db80fb

View File

@ -96,9 +96,16 @@ class DefaultQuoteStrategy implements QuoteStrategy
*/
public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)
{
return isset($association['joinTable']['quoted'])
? $platform->quoteIdentifier($association['joinTable']['name'])
: $association['joinTable']['name'];
$schema = '';
if (isset($association['joinTable']['schema']) && null !== $association['joinTable']['schema']) {
$schema = $association['joinTable']['schema'] . '.';
}
$tableName = $association['joinTable']['name'];
if (isset($association['joinTable']['quoted'])) {
$tableName = $platform->quoteIdentifier($tableName);
}
return $schema . $tableName;
}
/**