elasticsearch\QueryBuilder buildCondition()

buildCondition() public method

Parses the condition specification and generates the corresponding SQL expression.

public string buildCondition ( $condition )
$condition string|array

The condition specification. Please refer to yii\elasticsearch\Query::where() on how to specify a condition.

return string

The generated SQL expression

throws yii\base\InvalidParamException

if unknown operator is used in query

throws yii\base\NotSupportedException

if string conditions are used in where

doc_Yii
2016-10-30 17:02:11
Comments
Leave a Comment

Please login to continue.