private function collectForeignKeys(TableDiff $tableDiff)
    {
        foreach ($tableDiff->getCreatedForeignKeys() as $foreignKey) {
            $this->createForeignKeyQueries = array_merge(
                $this->createForeignKeyQueries,
                $this->platform->getCreateForeignKeySQLQueries($foreignKey, $tableDiff->getNewAsset()->getName())
            );
        }

        foreach ($tableDiff->getDroppedForeignKeys() as $foreignKey) {
            $this->dropForeignKeyQueries = array_merge(
                $this->dropForeignKeyQueries,
                $this->platform->getDropForeignKeySQLQueries($foreignKey, $tableDiff->getNewAsset()->getName())
            );
        }
    }
private function collectForeignKeys(TableDiff $tableDiff)
    {
        foreach ($tableDiff->getCreatedForeignKeys() as $foreignKey) {
            $this->createForeignKeyQueries = array_merge(
                $this->createForeignKeyQueries,
                $this->platform->getCreateForeignKeySQLQueries($foreignKey, $tableDiff->getNewAsset()->getName())
            );
        }

        foreach ($tableDiff->getDroppedForeignKeys() as $foreignKey) {
            $this->dropForeignKeyQueries = array_merge(
                $this->dropForeignKeyQueries,
                $this->platform->getDropForeignKeySQLQueries($foreignKey, $tableDiff->getNewAsset()->getName())
            );
        }
    }
private function collectForeignKeys ( TableDiff $ tableDiff ) { foreach ( $ tableDiff -> getCreatedForeignKeys ( ) as $ foreignKey ) { $ this -> createForeignKeyQueries = array_merge ( $ this -> createForeignKeyQueries , $ this -> platform -> getCreateForeignKeySQLQueries ( $ foreignKey , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } foreach ( $ tableDiff -> getDroppedForeignKeys ( ) as $ foreignKey ) { $ this -> dropForeignKeyQueries = array_merge ( $ this -> dropForeignKeyQueries , $ this -> platform -> getDropForeignKeySQLQueries ( $ foreignKey , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } }
Collects queries about foreign keys to alter a table.

@param \Fridge\DBAL\Schema\Diff\TableDiff $tableDiff The table difference.
Collects queries about foreign keys to alter a table .