|
|
@ -86,11 +86,11 @@ class ActiveDataProvider extends BaseDataProvider |
|
|
|
parent::init(); |
|
|
|
parent::init(); |
|
|
|
if (is_string($this->db)) { |
|
|
|
if (is_string($this->db)) { |
|
|
|
$this->db = Yii::$app->getComponent($this->db); |
|
|
|
$this->db = Yii::$app->getComponent($this->db); |
|
|
|
} |
|
|
|
|
|
|
|
if ($this->db === null) { |
|
|
|
if ($this->db === null) { |
|
|
|
throw new InvalidConfigException('The "db" property must be a valid DB Connection application component.'); |
|
|
|
throw new InvalidConfigException('The "db" property must be a valid DB Connection application component.'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritdoc |
|
|
|
* @inheritdoc |
|
|
|