final class ParentKeyLookup

Reports whether the row a foreign key points at is still there.

A cascade is only set off where nothing else holds the key up. Another row of the parent may carry the same values — the key need not be unique — and while one does, the children still reference something that exists.

Type Aliases§

RowValue = import from TableDefinition

Methods§

public function exists(
    ShadowStore $store,
    string $table,
    list<string> $columns,
    list<RowValue> $values,
): bool

Private surface 1§

Implementation details, listed for orientation only.

private RowMatch $rows = new \ZtdQuery\Shadow\Row\RowMatch()

Test cases 10§

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

Dedicated tests 4
Other tests reaching this symbol 6

Relations§

Instantiated in 2
Method calls 3
Type declarations 2