Filter/Doctrine/Expression/ExpressionBuilder.php
public function stringLike($field, $value, $type = FilterOperands::STRING_CONTAINS)
    {
        $value = $this->convertTypeToMask($value, $type);

        return $this->expr()->like(
            $this->forceCaseInsensitivity ? $this->expr()->lower($field) : $field,
            $this->expr()->literal($value)
        );
    }
public function stringLike($field, $value, $type = FilterOperands::STRING_CONTAINS)
    {
        $value = $this->convertTypeToMask($value, $type);

        return $this->expr()->like(
            $this->forceCaseInsensitivity ? $this->expr()->lower($field) : $field,
            $this->expr()->literal($value)
        );
    }
public function stringLike ( $ field , $ value , $ type = FilterOperands :: STRING_CONTAINS ) { $ value = $ this -> convertTypeToMask ( $ value , $ type ) ; return $ this -> expr ( ) -> like ( $ this -> forceCaseInsensitivity ? $ this -> expr ( ) -> lower ( $ field ) : $ field , $ this -> expr ( ) -> literal ( $ value ) ) ; }
Get string like expression

@param  string $field field name
@param  string $value string value
@param  int    $type one of FilterOperands::STRING_* constant

@return \Doctrine\ORM\Query\Expr\Comparison|string
Get string like expression