Doctrine\DBAL\Platforms\AbstractPlatform::getCreateForeignKeySQL
Create a new foreign key
Signature
public function getCreateForeignKeySQL(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
Returns
- string