Pagekit\Database\Utility::dropAndCreateForeignKey PHP Method

dropAndCreateForeignKey() public method

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