Changed comment again to actually be correct. This is also consistent with the draft of the definitive guide.

This commit is contained in:
Grant Furgiuele
2014-03-18 15:21:43 -05:00
parent d5c3ac8576
commit cf42b74f7c

View File

@@ -17,7 +17,8 @@ use yii\base\InvalidCallException;
* iterating through the reader. For example, * iterating through the reader. For example,
* *
* ~~~ * ~~~
* $reader = $command->setSql('SELECT * FROM tbl_post'); * $command = $connection->createCommand('SELECT * FROM tbl_post');
* $reader = $command->query();
* *
* while ($row = $reader->read()) { * while ($row = $reader->read()) {
* $rows[] = $row; * $rows[] = $row;