mongodb\QueryBuilder buildLikeCondition()

buildLikeCondition() public method

Creates a Mongo condition, which emulates the LIKE operator.

public array buildLikeCondition ( $operator, $operands )
$operator string

The operator to use

$operands array

The first operand is the column name. The second operand is a single value that column value should be compared with.

return array

The generated Mongo condition.

throws yii\base\InvalidParamException

if wrong number of operands have been given.

doc_Yii
2016-10-30 17:09:04
Comments
Leave a Comment

Please login to continue.