db\QueryBuilder build()

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 $params.

doc_Yii
2016-10-30 16:59:10
Comments
Leave a Comment

Please login to continue.