qor / validations

Validations is a GORM extension, used to validate models when creating, updating
MIT License
134 stars 43 forks source link

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

Open KiddoV opened 1 year ago

KiddoV commented 1 year ago

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 commented 11 months ago

Same

hayrullahcansu commented 8 months ago

same issue