models/searches/SearchTrait.php
protected function createLikeExpression($operand1, $operand2)
    {
        /* @var $db \yii\db\Connection */
        $db = static::getDb();

        // In PGSQL we use case insensitive matching also.
        $like_function = $db->getDriverName() == 'pgsql' ? 'ILIKE' : 'LIKE';

        return [$like_function, $operand1, $operand2];
    }
protected function createLikeExpression($operand1, $operand2)
    {
        /* @var $db \yii\db\Connection */
        $db = static::getDb();

        // In PGSQL we use case insensitive matching also.
        $like_function = $db->getDriverName() == 'pgsql' ? 'ILIKE' : 'LIKE';

        return [$like_function, $operand1, $operand2];
    }
protected function createLikeExpression ( $ operand1 , $ operand2 ) { /* @var $db \yii\db\Connection */ $ db = static :: getDb ( ) ; // In PGSQL we use case insensitive matching also. $ like_function = $ db -> getDriverName ( ) == 'pgsql' ? 'ILIKE' : 'LIKE' ; return [ $ like_function , $ operand1 , $ operand2 ] ; }
Creates a `LIKE` expression, which can be used in the Query builder.

@param mixed $operand1 Should be a column or DB expression.
@param mixed $operand2 Should be a string or an array representing the values that the column or DB expression
should be like.

@return array

@see http://www.yiiframework.com/doc-2.0/yii-db-query.html#where%28%29-detail
Creates a LIKE expression which can be used in the Query builder .