lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
public function getDropForeignKeySQL($foreignKey, $table)
    {
        if (! $foreignKey instanceof ForeignKeyConstraint) {
            $foreignKey = new Identifier($foreignKey);
        }

        if (! $table instanceof Table) {
            $table = new Identifier($table);
        }

        $foreignKey = $foreignKey->getQuotedName($this);
        $table      = $table->getQuotedName($this);

        return 'ALTER TABLE ' . $table . ' DROP FOREIGN KEY ' . $foreignKey;
    }
public function getDropForeignKeySQL($foreignKey, $table)
    {
        if (! $foreignKey instanceof ForeignKeyConstraint) {
            $foreignKey = new Identifier($foreignKey);
        }

        if (! $table instanceof Table) {
            $table = new Identifier($table);
        }

        $foreignKey = $foreignKey->getQuotedName($this);
        $table      = $table->getQuotedName($this);

        return 'ALTER TABLE ' . $table . ' DROP FOREIGN KEY ' . $foreignKey;
    }
public function getDropForeignKeySQL ( $ foreignKey , $ table ) { if ( ! $ foreignKey instanceof ForeignKeyConstraint ) { $ foreignKey = new Identifier ( $ foreignKey ) ; } if ( ! $ table instanceof Table ) { $ table = new Identifier ( $ table ) ; } $ foreignKey = $ foreignKey -> getQuotedName ( $ this ) ; $ table = $ table -> getQuotedName ( $ this ) ; return 'ALTER TABLE ' . $ table . ' DROP FOREIGN KEY ' . $ foreignKey ; }
Returns the SQL to drop a foreign key.

@param ForeignKeyConstraint|string $foreignKey
@param Table|string                $table

@return string
Returns the SQL to drop a foreign key .