diff --git a/framework/db/ar/ActiveFinder.php b/framework/db/ar/ActiveFinder.php index 0e55493..050d5d6 100644 --- a/framework/db/ar/ActiveFinder.php +++ b/framework/db/ar/ActiveFinder.php @@ -318,12 +318,7 @@ class ActiveFinder extends \yii\base\Object } if ($element->query instanceof ActiveRelation) { - $joinType = - if ($element->query->joinType === null) { - $joinType = 'LEFT JOIN'; - } else { - $joinType = $element->query->joinType; - } + $joinType = $element->query->joinType ?: 'LEFT JOIN'; if ($element->query->modelClass !== null) { $modelClass = $element->query->modelClass; $tableName = $this->connection->quoteTableName($modelClass::tableName());