go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
88 stars 666 forks source link

bug in SetColumn in BeforeUpdate hook #707

Open FredrikMorstad opened 4 months ago

FredrikMorstad commented 4 months ago

Explain your user case and expected results

SetColumn in BeforeUpdate hook updates wrong column. The update hook updates price_area however type is updated