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

A generic object command that the server rejects, such as a COMMENT ON COLUMN with an unqualified column.

Source: https://www.postgresql.org/docs/17/sql-comment.html.

Reading the messagedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Object\Problem\ObjectProblem(\SqlSemantics\Platform\PostgreSql\Statement\Object\Problem\ObjectProblemKind::ConcurrentCascade))->message() // => 'DROP INDEX CONCURRENTLY does not support CASCADE'

Properties§

public string $subject = ''

Methods§

public function __construct(public ObjectProblemKind $kind, public string $subject = '')

Parameters

$kindObjectProblemKindWhat is wrong
$subjectstringThe name the message mentions, if any
public function message(): string

Describes the problem as the server does.

Returns

string
Test cases 1
Calls 1

Test cases 4§

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

Dedicated tests 1
Other tests reaching this symbol 3

Relations§

Instantiated in 5