mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-18 15:31:06 +08:00
Changed comment again to actually be correct. This is also consistent with the draft of the definitive guide.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user