1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +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) public function getJoinTableName(array $association, ClassMetadata $class, AbstractPlatform $platform)
{ {
$schema = ''; $schema = '';
if (isset($association['joinTable']['schema']) && null !== $association['joinTable']['schema']) {
if (isset($association['joinTable']['schema'])) {
$schema = $association['joinTable']['schema'] . '.'; $schema = $association['joinTable']['schema'] . '.';
} }
$tableName = $association['joinTable']['name']; $tableName = $association['joinTable']['name'];
if (isset($association['joinTable']['quoted'])) { if (isset($association['joinTable']['quoted'])) {
$tableName = $platform->quoteIdentifier($tableName); $tableName = $platform->quoteIdentifier($tableName);
} }