ReferenceDefinition

Syntax node to represent the REFERENCES part of a foreign key definition, encapsulating ON UPDATE/ON DELETE actions as well as the foreign table name and columns.

Table of Contents

Properties

$columnNames  : array<string|int, IndexColumnName>
$match  : string
Match type: FULL, PARTIAL or SIMPLE
$onDelete  : string
Reference Option: RESTRICT | CASCADE | SET NULL | NO ACTION
$onUpdate  : string
Reference Option: RESTRICT | CASCADE | SET NULL | NO ACTION
$tableName  : Identifier

Methods

__construct()  : mixed
ReferenceDefinition constructor.

Properties

$match

Match type: FULL, PARTIAL or SIMPLE

public string $match

$onDelete

Reference Option: RESTRICT | CASCADE | SET NULL | NO ACTION

public string $onDelete

$onUpdate

Reference Option: RESTRICT | CASCADE | SET NULL | NO ACTION

public string $onUpdate

Methods

__construct()

ReferenceDefinition constructor.

public __construct(Identifier $tableName, array<string|int, mixed> $columnNames) : mixed
Parameters
$tableName : Identifier
$columnNames : array<string|int, mixed>

        
On this page

Search results