mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
joinWith implementation cleanup
This commit is contained in:
@@ -641,7 +641,6 @@ class ActiveQuery extends Query implements ActiveQueryInterface
|
||||
if (!empty($child->join)) {
|
||||
foreach ($child->join as $join) {
|
||||
$this->join[] = $join;
|
||||
$this->populateAliases((array) $join[1]);
|
||||
}
|
||||
}
|
||||
if (!empty($child->union)) {
|
||||
|
||||
@@ -851,7 +851,7 @@ class Query extends Component implements QueryInterface
|
||||
*/
|
||||
public static function create($from)
|
||||
{
|
||||
$query = new self([
|
||||
return new self([
|
||||
'where' => $from->where,
|
||||
'limit' => $from->limit,
|
||||
'offset' => $from->offset,
|
||||
@@ -867,7 +867,5 @@ class Query extends Component implements QueryInterface
|
||||
'union' => $from->union,
|
||||
'params' => $from->params,
|
||||
]);
|
||||
$query->_aliases = $from->_aliases;
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user