public function whereExists($query, array $queryParams = null, string $op = ''): self
    {
        if ($query instanceof Builder) {
            $query = $query->toString();
        }

        if ($queryParams != null) {
            $query = $this->agent->prepare($query, $queryParams);
        }

        return $this->where('EXISTS ('. $query .')', null, $op);
    }
public function whereExists($query, array $queryParams = null, string $op = ''): self
    {
        if ($query instanceof Builder) {
            $query = $query->toString();
        }

        if ($queryParams != null) {
            $query = $this->agent->prepare($query, $queryParams);
        }

        return $this->where('EXISTS ('. $query .')', null, $op);
    }
public function whereExists ( $ query , array $ queryParams = null , string $ op = '' ) : self { if ( $ query instanceof Builder ) { $ query = $ query -> toString ( ) ; } if ( $ queryParams != null ) { $ query = $ this -> agent -> prepare ( $ query , $ queryParams ) ; } return $ this -> where ( 'EXISTS (' . $ query . ')' , null , $ op ) ; }
Where exists.
@param  string|Builder $query
@param  array|null     $queryParams
@param  string         $op
@return self
Where exists .