Browse Source

Fixes #1433: added default DB connection to SqlDataProvider.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
2fca1e9061
  1. 3
      framework/yii/data/SqlDataProvider.php

3
framework/yii/data/SqlDataProvider.php

@ -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.
*/

Loading…
Cancel
Save