Doctrine\DBAL\Schema\AbstractSchemaManager::createForeignKey
Create a new foreign key
Signature
public function createForeignKey(ForeignKeyConstraint
$foreignKey,
string|Table
$table )
Parameters
$foreignKey
— Doctrine\DBAL\Schema\ForeignKeyConstraint- ForeignKey instance
$table
— object- name of the table on which the foreign key is to be created