Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache

This commit is contained in:
Qiang Xue
2015-01-04 19:28:05 -05:00
parent 389d9e2fd2
commit d341bf02b4
20 changed files with 73 additions and 26 deletions

View File

@ -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;