Methods |
public
|
cascadeOnUpdate(): $this
Indicate that updates should cascade.
Indicate that updates should cascade.
|
#
|
public
|
restrictOnUpdate(): $this
Indicate that updates should be restricted.
Indicate that updates should be restricted.
|
#
|
public
|
cascadeOnDelete(): $this
Indicate that deletes should cascade.
Indicate that deletes should cascade.
|
#
|
public
|
restrictOnDelete(): $this
Indicate that deletes should be restricted.
Indicate that deletes should be restricted.
|
#
|
public
|
nullOnDelete(): $this
Indicate that deletes should set the foreign key value to null.
Indicate that deletes should set the foreign key value to null.
|
#
|
public
|
deferrable(bool $value = true): ForeignKeyDefinition
Set the foreign key as deferrable (PostgreSQL)
Set the foreign key as deferrable (PostgreSQL)
|
#
|
public
|
initiallyImmediate(bool $value = true): ForeignKeyDefinition
Set the default time to check the constraint (PostgreSQL)
Set the default time to check the constraint (PostgreSQL)
|
#
|
public
|
on(string $table): ForeignKeyDefinition
Specify the referenced table
Specify the referenced table
|
#
|
public
|
onDelete(string $action): ForeignKeyDefinition
Add an ON DELETE action
|
#
|
public
|
onUpdate(string $action): ForeignKeyDefinition
Add an ON UPDATE action
|
#
|
public
|
references(string|array $columns): ForeignKeyDefinition
Specify the referenced column(s)
Specify the referenced column(s)
|
#
|