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

#1316 - removing useless null check (redundant with isset()), cs cleanups

This commit is contained in:
Marco Pivetta 2015-03-17 23:16:16 +00:00
parent 4095bbaa92
commit 648fde8914

View File

@ -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);
}