build() public method
Generates a SELECT SQL statement from a yii\db\Query object.
public array build ( $query, $params = [] ) | ||
---|---|---|
$query | yii\db\Query |
The yii\db\Query object from which the SQL statement will be generated. |
$params | array |
The parameters to be bound to the generated SQL statement. These parameters will be included in the result with the additional parameters generated during the query building process. |
return | array |
The generated SQL statement (the first array element) and the corresponding parameters to be bound to the SQL statement (the second array element). The parameters returned include those provided in |
Please login to continue.