Pagekit\Database\Utility::createForeignKey PHP Method

createForeignKey() public method

{@see AbstractSchemaManager::createForeignKey}
public createForeignKey ( Doctrine\DBAL\Schema\ForeignKeyConstraint $foreignKey, $table )
$foreignKey Doctrine\DBAL\Schema\ForeignKeyConstraint
    public function createForeignKey(ForeignKeyConstraint $foreignKey, $table)
    {
        $this->manager->createForeignKey($foreignKey, $this->replacePrefix($table));
    }