yiisoft/yii — pull request #1500 by slavcodev (2012-09-29 19:12:19+00:00)
Title: Add support CDbCommand in CSqlDataProvider

Add support CDbCommand in CSqlDataProvider

Example controller action:

```php
$command = Yii::app()->db->createCommand();
// use query builder
$command->where(...);
// may be need
$command->setFetchMode(PDO::FETCH_OBJ);

$dataProvider = new CSqlDataProvider($command, $config);
```