LikeConditionBuilder
API reference › yii › db › mssql › conditions › LikeConditionBuilder
Class LikeConditionBuilder builds objects of LikeCondition
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$escapeCharacter protected | string| | Character used to escape special characters in LIKE conditions. Default: null. | yii\ |
$escapingReplacements protected | array | Default: ['%' => '[%]',. | LikeConditionBuilder |
$queryBuilder protected | yii\ | Default: null. | yii\ |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | ExpressionBuilderTrait constructor. | yii\ |
build() | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | yii\ |
parseOperator() protected | yii\ |
Property details
Section titled “Property details”$escapingReplacements
Section titled “$escapingReplacements ”protected array $escapingReplacements = ['%' => '[%]', '_' => '[_]', '[' => '[[]', ']' => '[]]', '\\' => '[\]']By default it’s configured to escape %, _ and \ with \.