go-gorm / playground

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

bug in SetColumn in BeforeUpdate hook #707

Open FredrikMorstad opened 8 months ago

FredrikMorstad commented 8 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