public function compareForeignKeys(ForeignKey $oldForeignKey, ForeignKey $newForeignKey)
    {
        return ($oldForeignKey->getName() !== $newForeignKey->getName())
            || ($oldForeignKey->getLocalColumnNames() !== $newForeignKey->getLocalColumnNames())
            || ($oldForeignKey->getForeignTableName() !== $newForeignKey->getForeignTableName())
            || ($oldForeignKey->getForeignColumnNames() !== $newForeignKey->getForeignColumnNames())
            || ($oldForeignKey->getOnDelete() !== $newForeignKey->getOnDelete())
            || ($oldForeignKey->getOnUpdate() !== $newForeignKey->getOnUpdate());
    }
public function compareForeignKeys(ForeignKey $oldForeignKey, ForeignKey $newForeignKey)
    {
        return ($oldForeignKey->getName() !== $newForeignKey->getName())
            || ($oldForeignKey->getLocalColumnNames() !== $newForeignKey->getLocalColumnNames())
            || ($oldForeignKey->getForeignTableName() !== $newForeignKey->getForeignTableName())
            || ($oldForeignKey->getForeignColumnNames() !== $newForeignKey->getForeignColumnNames())
            || ($oldForeignKey->getOnDelete() !== $newForeignKey->getOnDelete())
            || ($oldForeignKey->getOnUpdate() !== $newForeignKey->getOnUpdate());
    }
public function compareForeignKeys ( ForeignKey $ oldForeignKey , ForeignKey $ newForeignKey ) { return ( $ oldForeignKey -> getName ( ) !== $ newForeignKey -> getName ( ) ) || ( $ oldForeignKey -> getLocalColumnNames ( ) !== $ newForeignKey -> getLocalColumnNames ( ) ) || ( $ oldForeignKey -> getForeignTableName ( ) !== $ newForeignKey -> getForeignTableName ( ) ) || ( $ oldForeignKey -> getForeignColumnNames ( ) !== $ newForeignKey -> getForeignColumnNames ( ) ) || ( $ oldForeignKey -> getOnDelete ( ) !== $ newForeignKey -> getOnDelete ( ) ) || ( $ oldForeignKey -> getOnUpdate ( ) !== $ newForeignKey -> getOnUpdate ( ) ) ; }
Compares two foreign keys.

@param \Fridge\DBAL\Schema\ForeignKey $oldForeignKey The old foreign key.
@param \Fridge\DBAL\Schema\ForeignKey $newForeignKey The new foreign key.

@return boolean TRUE if foreign keys are different else FALSE.
Compares two foreign keys .