Browse Source

..

tags/2.0.0-beta
Qiang Xue 13 years ago
parent
commit
c50d587275
  1. 7
      framework/db/ar/ActiveFinder.php

7
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());

Loading…
Cancel
Save