CASCADE
CASCADE = 'CASCADE'
$referencedTable : \Phinx\Db\Table
setColumns(array|string $columns) : \Phinx\Db\Table\ForeignKey
Sets the foreign key columns.
array|string | $columns |
setReferencedTable(\Phinx\Db\Table $table) : \Phinx\Db\Table\ForeignKey
Sets the foreign key referenced table.
\Phinx\Db\Table | $table |
getReferencedTable() : \Phinx\Db\Table
Gets the foreign key referenced table.
setReferencedColumns(array $referencedColumns) : \Phinx\Db\Table\ForeignKey
Sets the foreign key referenced columns.
array | $referencedColumns |
setOnDelete(string $onDelete) : \Phinx\Db\Table\ForeignKey
Sets ON DELETE action for the foreign key.
string | $onDelete |
setOnUpdate(string $onUpdate) : \Phinx\Db\Table\ForeignKey
Sets ON UPDATE action for the foreign key.
string | $onUpdate |
setConstraint(string $constraint) : \Phinx\Db\Table\ForeignKey
Sets constraint for the foreign key.
string | $constraint |
setOptions(array $options) : \Phinx\Db\Table\ForeignKey
Utility method that maps an array of index options to this objects methods.
array | $options | Options |