validations icon indicating copy to clipboard operation
validations copied to clipboard

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

Open KiddoV opened this issue 2 years ago • 2 comments

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

KiddoV avatar Mar 21 '23 18:03 KiddoV

Same

mareebsiddiqui avatar Aug 24 '23 11:08 mareebsiddiqui

same issue

hayrullahcansu avatar Nov 20 '23 09:11 hayrullahcansu