Browse Source

Modified example in DataReader usage comment to reference a DB Command function which accepts a SQL string argument.

tags/2.0.0-beta
Grant Furgiuele 11 years ago
parent
commit
d5c3ac8576
  1. 2
      framework/db/DataReader.php

2
framework/db/DataReader.php

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

Loading…
Cancel
Save