Doctrine\DBAL\Platforms\AbstractPlatform::getForeignKeyDeclarationSQL
Obtain DBMS specific SQL code portion needed to set the FOREIGN KEY constraint of a field declaration to be used in statements like CREATE TABLE.
Signature
public function getForeignKeyDeclarationSQL(ForeignKeyConstraint
$foreignKey )
Parameters
$foreignKey
— \Doctrine\DBAL\Schema\ForeignKeyConstraint
Returns
- string
- DBMS specific SQL code portion needed to set the FOREIGN KEY constraint
of a field declaration.