Doctrine\DBAL\Schema\AbstractSchemaManager::dropAndCreateForeignKey
Drop and create a new foreign key
Signature
public function dropAndCreateForeignKey(ForeignKeyConstraint
$foreignKey,
string|Table
$table )
Parameters
$foreignKey
— Doctrine\DBAL\Schema\ForeignKeyConstraint- associative array that defines properties of the foreign key to be created.
$table
— object- name of the table on which the foreign key is to be created