mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache
This commit is contained in:
@ -72,8 +72,9 @@ class ActiveDataProvider extends BaseDataProvider
|
||||
*/
|
||||
public $key;
|
||||
/**
|
||||
* @var Connection|string the DB connection object or the application component ID of the DB connection.
|
||||
* @var Connection|array|string the DB connection object or the application component ID of the DB connection.
|
||||
* If not set, the default DB connection will be used.
|
||||
* Starting from version 2.0.2, this can also be a configuration array for creating the object.
|
||||
*/
|
||||
public $db;
|
||||
|
||||
|
Reference in New Issue
Block a user