Commit c50d5872 by Qiang Xue

..

parent df003215
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment