Class yii\db\conditions\ExistsCondition

Inheritanceyii\db\conditions\ExistsCondition
Implementsyii\db\conditions\ConditionInterface
Available since version2.0.14
Source Code https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/ExistsCondition.php

Condition that represents EXISTS operator.

Method Details

__construct() public method

ExistsCondition constructor.

public void __construct ( $operator, $query )
$operator string

The operator to use (e.g. EXISTS or NOT EXISTS)

$query yii\db\Query

The yii\db\Query object representing the sub-query.

fromArrayDefinition() public static method

{@inheritdoc}

public static void fromArrayDefinition ( $operator, $operands )
$operator
$operands
getOperator() public method

public string getOperator ( )
getQuery() public method

public yii\db\Query getQuery ( )