Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KiddoV opened this issue Mar 21, 2023 · 2 comments
Open

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

KiddoV opened this issue Mar 21, 2023 · 2 comments

Comments

@KiddoV
Copy link

KiddoV commented Mar 21, 2023

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
@mareebsiddiqui
Copy link

Same

@hayrullahcansu
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants