Allow to join non-public schema tables
This commit is contained in:
parent
8f0b3398d3
commit
f244db80fb
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user