Skip to content
PHP Ecosystem
Explore

ExistsConditionBuilder

API reference › yii › db › conditions › ExistsConditionBuilder

classyii\db\conditions\ExistsConditionBuilder
Implementsyii\db\ExpressionBuilderInterface
Uses traitsyii\db\ExpressionBuilderTrait
Since2.0.14
Sourceframework/db/conditions/ExistsConditionBuilder.php

Class ExistsConditionBuilder builds objects of ExistsCondition

PropertyTypeDescriptionDefined by
$queryBuilder protectedyii\db\QueryBuilderDefault: null.yii\db\ExpressionBuilderTrait
MethodDescriptionDefined by
__construct()ExpressionBuilderTrait constructor.yii\db\ExpressionBuilderTrait
build()Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.ExistsConditionBuilder
public function build(yii\db\ExpressionInterface|yii\db\conditions\ExistsCondition $expression, array &$params = []): string

Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

Parameters

ParameterTypeDescription
$expressionyii\db\ExpressionInterface|ExistsConditionThe expression to be built.
$paramsarrayThe binding parameters.

Returns

string: The raw SQL that will not be additionally escaped or quoted.