Skip to content

Commit

Permalink
Merge pull request #6714 from guiajlopes/master
Browse files Browse the repository at this point in the history
Remove unnecessary else
  • Loading branch information
Ocramius committed Sep 21, 2017
2 parents f96dc3b + df1250e commit 1d5c87e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Doctrine/ORM/Query/SqlWalker.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,8 @@ public function walkSelectClause($selectClause)

// Add foreign key columns of class and also parent classes
foreach ($class->associationMappings as $assoc) {
if ( ! ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE)) {
continue;
} else if ( !$addMetaColumns && !isset($assoc['id'])) {
if ( ! ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE)
|| ( ! $addMetaColumns && !isset($assoc['id']))) {
continue;
}

Expand Down

0 comments on commit 1d5c87e

Please sign in to comment.