mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Merge branch 'master' into SamMousa-indexby-after-relations-9342
Conflicts: framework/db/Query.php
This commit is contained in:
@ -137,7 +137,9 @@ trait ActiveQueryTrait
|
||||
{
|
||||
$primaryModel = reset($models);
|
||||
if (!$primaryModel instanceof ActiveRecordInterface) {
|
||||
$primaryModel = new $this->modelClass();
|
||||
/* @var $modelClass ActiveRecordInterface */
|
||||
$modelClass = $this->modelClass;
|
||||
$primaryModel = $modelClass::instance();
|
||||
}
|
||||
$relations = $this->normalizeRelations($primaryModel, $with);
|
||||
/* @var $relation ActiveQuery */
|
||||
|
Reference in New Issue
Block a user