Skip to content

Needed to Update to The New Package "gorm.io/gorm" #15

Description

@KiddoV

Got this error when using:

import (
"gorm.io/gorm"
"github.com/qor/validations"
)

database, _ := gorm.Open(...)
validations.RegisterCallbacks(database)

Err:

cannot use database (variable of type *"gorm.io/gorm".DB) as *"github.com/jinzhu/gorm".DB value in argument to validations.RegisterCallbacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions