ForeignKeyBlueprint
final class ForeignKeyBlueprint (View source)
Collects the referenced table, columns, and actions for a table-level foreign key.
Methods
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Details
__construct
__construct(array $columns, string|null $referencedTable = null, array $referencedColumns = ['id'], string|null $name = null, ForeignKeyAction|null $onUpdate = null, ForeignKeyAction|null $onDelete = null)
No description
on
ForeignKeyBlueprint
on(string $table)
Provides this part of the database contract while preserving the object's current state and driver semantics.
name
ForeignKeyBlueprint
name(string $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
onUpdate
ForeignKeyBlueprint
onUpdate(ForeignKeyAction $action)
Provides this part of the database contract while preserving the object's current state and driver semantics.
onDelete
ForeignKeyBlueprint
onDelete(ForeignKeyAction $action)
Provides this part of the database contract while preserving the object's current state and driver semantics.
cascadeOnUpdate
ForeignKeyBlueprint
cascadeOnUpdate()
Provides this part of the database contract while preserving the object's current state and driver semantics.
cascadeOnDelete
ForeignKeyBlueprint
cascadeOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
restrictOnUpdate
ForeignKeyBlueprint
restrictOnUpdate()
Provides this part of the database contract while preserving the object's current state and driver semantics.
restrictOnDelete
ForeignKeyBlueprint
restrictOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
nullOnDelete
ForeignKeyBlueprint
nullOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
definition
ForeignKeyDefinition
definition()
Provides this part of the database contract while preserving the object's current state and driver semantics.