Allow to join non-public schema tables
This commit is contained in:
parent
8f0b3398d3
commit
f244db80fb
1 changed files with 10 additions and 3 deletions
|
@ -96,9 +96,16 @@ class DefaultQuoteStrategy implements QuoteStrategy
|
||||||
*/
|
*/
|
||||||
public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)
|
public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)
|
||||||
{
|
{
|
||||||
return isset($association['joinTable']['quoted'])
|
$schema = '';
|
||||||
? $platform->quoteIdentifier($association['joinTable']['name'])
|
if (isset($association['joinTable']['schema']) && null !== $association['joinTable']['schema']) {
|
||||||
: $association['joinTable']['name'];
|
$schema = $association['joinTable']['schema'] . '.';
|
||||||
|
}
|
||||||
|
$tableName = $association['joinTable']['name'];
|
||||||
|
if (isset($association['joinTable']['quoted'])) {
|
||||||
|
$tableName = $platform->quoteIdentifier($tableName);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $schema . $tableName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue