Skip to content

ForeignKey

  • Full name: \Qubus\Expressive\Schema\ForeignKey

Properties

refTable

protected ?string $refTable

refColumns

protected string[] $refColumns

actions

protected array $actions

columns

protected string[] $columns

Methods

__construct

public __construct(string[] $columns): mixed

Parameters:

Parameter Type Description
$columns string[]

addAction

protected addAction(string $on, string $action): $this

Parameters:

Parameter Type Description
$on string
$action string

getReferencedTable

public getReferencedTable(): string

getReferencedColumns

public getReferencedColumns(): string[]

getColumns

public getColumns(): string[]

getActions

public getActions(): array

references

public references(string $table, string[] $columns): $this

Parameters:

Parameter Type Description
$table string
$columns string[]

onDelete

public onDelete(string $action): $this

Parameters:

Parameter Type Description
$action string

onUpdate

public onUpdate(string $action): $this

Parameters:

Parameter Type Description
$action string


Automatically generated on 2025-10-13