queryAll() public method
Executes the SQL statement and returns ALL rows at once.
public array queryAll ( $fetchMode = null ) | ||
---|---|---|
$fetchMode | integer |
The result fetch mode. Please refer to PHP manual for valid fetch modes. If this parameter is null, the value set in $fetchMode will be used. |
return | array |
All rows of the query result. Each array element is an array representing a row of data. An empty array is returned if the query results in nothing. |
throws | yii\db\Exception |
execution failed |
Please login to continue.