mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Fixes #1433: added default DB connection to SqlDataProvider.
This commit is contained in:
@@ -64,9 +64,8 @@ class SqlDataProvider extends BaseDataProvider
|
||||
{
|
||||
/**
|
||||
* @var Connection|string the DB connection object or the application component ID of the DB connection.
|
||||
* If not set, the default DB connection will be used.
|
||||
*/
|
||||
public $db;
|
||||
public $db = 'db';
|
||||
/**
|
||||
* @var string the SQL statement to be used for fetching data rows.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user