db\QueryBuilder buildExistsCondition()

buildExistsCondition() public method

Creates an SQL expressions with the EXISTS operator.

public string buildExistsCondition ( $operator, $operands, &$params )
$operator string

The operator to use (e.g. EXISTS or NOT EXISTS)

$operands array

Contains only one element which is a yii\db\Query object representing the sub-query.

$params array

The binding parameters to be populated

return string

The generated SQL expression

throws yii\base\InvalidParamException

if the operand is not a yii\db\Query object.

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

Please login to continue.