final class ForeignKeyDefinition

One foreign key: which columns point where, and what happens when the parent moves.

Properties§

public non-empty-list<string> $columns
public string $referencedTable
public list<string> $referencedColumns
public ReferentialAction $onDelete = ReferentialAction::NoAction
public ReferentialAction $onUpdate = ReferentialAction::NoAction

Methods§

public function __construct(
    public non-empty-list<string> $columns,
    public string $referencedTable,
    public list<string> $referencedColumns,
    public ReferentialAction $onDelete = ReferentialAction::NoAction,
    public ReferentialAction $onUpdate = ReferentialAction::NoAction,
)

Parameters

$columnsnon-empty-list<string>
$referencedTablestring
$referencedColumnslist<string>
$onDeleteReferentialAction
$onUpdateReferentialAction
Test cases 1
Calls 1

Test cases 54§

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 53

Relations§

Constant reads 1
Type declarations 4