Commit 2fca1e90 by Qiang Xue

Fixes #1433: added default DB connection to SqlDataProvider.

parent 24ebc9fc
......@@ -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.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment