public static function createForeignKeyName($table, $columns, $refTable)
    {
        $column = is_array($columns) ? implode('_', $columns) . '_' : '';
        return preg_replace('/[^\w_-]/', '', "FK_{$table}_{$column}{$refTable}");
    }
public static function createForeignKeyName($table, $columns, $refTable)
    {
        $column = is_array($columns) ? implode('_', $columns) . '_' : '';
        return preg_replace('/[^\w_-]/', '', "FK_{$table}_{$column}{$refTable}");
    }
public static function createForeignKeyName ( $ table , $ columns , $ refTable ) { $ column = is_array ( $ columns ) ? implode ( '_' , $ columns ) . '_' : '' ; return preg_replace ( '/[^\w_-]/' , '' , "FK_{$table}_{$column}{$refTable}" ) ; }
Names new foreign key by convention.
@param $table
@param $columns
@param $refTable
@return string
Names new foreign key by convention .