final class MissingColumn
    implements Resolution, Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A name that no visible relation has, established by complete declarations.

Establishing that a column does not existdoctest
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INTEGER)');
    $semantics->analyze('SELECT b FROM t', [$table]) // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Column b does not exist.

Properties§

public Name $name
public QualifiedName|null $qualifier = null

Methods§

public function __construct(public Name $name, public QualifiedName|null $qualifier = null)

Parameters

$nameNameThe column name
$qualifierQualifiedName|nullThe relation qualifier the use wrote
public function message(): string

Describes the problem.

Returns

string

Test cases 57§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 55

Relations§

Instantiated in 4
Type checks 3