Adds a condition

@param string $componentId
@param string $operator
@param mixed  $value
@param bool   $processed

@return static
977175
public function where(string $componentId, string $operator, $value, bool $processed = false)
    {
        /** @var IColumnComponent $component */
        list($column, $component) = $this->structure->getColumnAndComponent($componentId);

        $operator = $component->getType()->getOperator($operator);
        /** @var ColumnConditionGroup $lastGroup */
        $lastGroup = end($this->conditionGroups);

        $condition = new ColumnCondition(
            $column,
            $component,
            $operator,
            $processed ? $value : $operator->getField()->process($value)
        );

        if (!$lastGroup) {
            $this->conditionGroups[] = new ColumnConditionGroup($this->conditionMode, [$condition]);
        } elseif ($lastGroup->getConditionMode() !== $this->conditionMode) {
            $this->conditionGroups[] = new ColumnConditionGroup($this->conditionMode, [$condition]);
        } else {
            array_pop($this->conditionGroups);
            $this->conditionGroups[] = new ColumnConditionGroup(
                $this->conditionMode,
                array_merge($lastGroup->getConditions(), [$condition])
            );
        }

        return $this;
    }
690466
public function where($column, $value = '', $operator = Criterion::EQUALS, $variable = null, $additional = null, $special = null): self
        {
            if (!$column instanceof CriterionProvider) {
                $column = new Criterion($column, $value, $operator, $variable, $additional, $special);
            }

            $this->parts[] = $column;

            return $this;
        }
1118764
private function addColumn(string $logic, $column, ?string $operator, $value,
                                 callable $columnCallable = null, callable $valueCallable = null)
    {
        $column = $this->prepareRow($column);

        if (is_array($column)) {
            $this->addRow($logic, $column, $operator, (array) $value, $columnCallable, $valueCallable);

            return $this;
        }

        $value = $this->prepareValue($value);

        $operator = $this->prepareOperator($operator, $value);

        $sql = $this->prepareColumn($column, $columnCallable) . ' ' . $operator . ' ' . $this->prepareBindKeys($value);

        $this->addCondition($logic, $sql, (array) $this->prepareValues($value, $valueCallable));

        return $this;
    }
1205730
public function where($key, $value = true, $operator = '=')
    {
        return $this->addCondition($key, $value, $operator, 'where');
    }
690944
public function addFilterRule(string $field, string $value, $operator = null, int $crud = READRULES)
    {
        // if an existing rule is detected, over write
        $this->rules[$field] = new FilterRule($field, $value, $operator, $crud);
    }
521366
public function having($column, $operator = '=', $value = null)
    {
        $this->havingType = 'AND';

        return $this->addCondition('having', $column, $operator, $value);
    }
864160
protected function whereHandler($key, $operator = null, $value = null, $joiner = 'AND')
    {
        $key = $this->addTablePrefix($key);
        $this->statements['wheres'][] = compact('key', 'operator', 'value', 'joiner');
        return $this;
    }
267884
public static function where($column, $operator, $value = null)
    {
        list($operator, $value) = static::prepareOperatorAndValue(
            $operator, $value, func_num_args() === 2
        );

        return new ValueConstraint($column, $operator, $value);
    }
669186
public Entity add (Component component) {
		if (addInternal(component)) {
			if (componentOperationHandler != null) {
				componentOperationHandler.add(this);
			}
			else {
				notifyComponentAdded();
			}
		}
		
		return this;
	}
901971
public function orHaving(string $column, $value, string $operator = self::OPERATOR_EQ): self
    {
        $this->criteria($this->having, $column, $value, $operator, self::LOGICAL_OR);

        return $this;
    }
1362674
public function where($column, $operator = '=', $value = false, $condition = 'AND')
    {
        $where = array();

        // Raw Query
        if ($column instanceof Raw) {
            $where['raw'] = true;
            $where['query'] = $column->getString();
            $where['condition'] = $condition;
            $where['operator'] = $operator;

            $this->queryCompiler->getQuery()->where($where);

            return $this;
        }

        $where['column'] = $column;
        $where['operator'] = $operator;
        $where['value'] = $this->quote($value);
        $where['condition'] = $condition;

        $this->queryCompiler->getQuery()->where($where);

        return $this;
    }
704177
public function orWhereDate($column, $operator, $value = null)
    {
        $this->wConditions()->orDate(...func_get_args());

        return $this;
    }
5976
private boolean setValueWithJs(final String componentId, final String value) {
        boolean selected;
        String script = "return (function(){var c  = Ext.getCmp('" + componentId + "'); var record = c.findRecord(c.displayField, '" + value + "');" +
                "if(record){c.onSelect(record, c.store.indexOf(record)); return true;} return false;})()";
        log.warn("force ComboBox Value with js: " + script);
        selected = (Boolean) WebLocatorUtils.doExecuteScript(script);
        log.warn("force ComboBox select result: " + selected);
        return selected;
    }
517846
public function orWhere($column, $value, $operator = self::OPERATOR_EQ): self
    {
        $this->criteria($this->where, $column, $value, $operator, self::LOGICAL_OR);

        return $this;
    }
210036
protected function addCondition($value, string $operator, bool $isColumn = false): WhereStatement
    {
        if ($isColumn && is_string($value)) {
            $value = function (Expression $expr) use ($value) {
                $expr->column($value);
            };
        }
        $this->sql->addWhereCondition($this->column, $value, $operator, $this->separator);
        return $this->statement;
    }
56738
public function whereCarried($column, $operator = null, $value = null, $boolean = 'and')
    {
        $type = 'Carried';

        $this->wheres[] = compact('type', 'column', 'operator', 'value', 'boolean');

        return $this;
    }
1261272
public function having($column, $operator, $value = null)
    {
        $this->hConditions()->column(...func_get_args());

        return $this;
    }