ForeignKeyDefinition
final class ForeignKeyDefinition (View source)
Provides the foreign key definition contract for the database subsystem.
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.
Resolves the effective value from the configured database dependencies and input.
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 $referencedTable, array $referencedColumns = ['id'], string|null $name = null, ForeignKeyAction|null $onUpdate = null, ForeignKeyAction|null $onDelete = null)
No description
make
static ForeignKeyDefinition
make(string|array $columns, string $referencedTable, string|array $referencedColumns = ['id'], string|null $name = null)
No description
cascadeOnUpdate
ForeignKeyDefinition
cascadeOnUpdate()
Provides this part of the database contract while preserving the object's current state and driver semantics.
cascadeOnDelete
ForeignKeyDefinition
cascadeOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
restrictOnUpdate
ForeignKeyDefinition
restrictOnUpdate()
Provides this part of the database contract while preserving the object's current state and driver semantics.
restrictOnDelete
ForeignKeyDefinition
restrictOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
nullOnDelete
ForeignKeyDefinition
nullOnDelete()
Provides this part of the database contract while preserving the object's current state and driver semantics.
onUpdate
ForeignKeyDefinition
onUpdate(ForeignKeyAction $action)
Provides this part of the database contract while preserving the object's current state and driver semantics.
onDelete
ForeignKeyDefinition
onDelete(ForeignKeyAction $action)
Provides this part of the database contract while preserving the object's current state and driver semantics.
columns
array
columns()
No description
referencedTable
string
referencedTable()
Provides this part of the database contract while preserving the object's current state and driver semantics.
referencedColumns
array
referencedColumns()
No description
name
string|null
name()
Provides this part of the database contract while preserving the object's current state and driver semantics.
resolvedName
string
resolvedName()
Resolves the effective value from the configured database dependencies and input.
updateAction
ForeignKeyAction|null
updateAction()
Provides this part of the database contract while preserving the object's current state and driver semantics.
deleteAction
ForeignKeyAction|null
deleteAction()
Provides this part of the database contract while preserving the object's current state and driver semantics.