Browse Source

fixed test break

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
98b4540e38
  1. 2
      framework/yii/data/ActiveDataProvider.php

2
framework/yii/data/ActiveDataProvider.php

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

Loading…
Cancel
Save