Gorm default davranis olarak bir modeli kaydettigimizde otomatik bagli oldugu modeli de kaydeder. Asagidaki gibi association gorm taglerini ekliyerek bunu engelleyebiliyoruz. Ben hem create, hem update'de bu ozelligi kapatmayi tercih ediyorum.

type Booking struct {
    AccountID     int
    Account       Account ` gorm:"foreignkey:AccountID;association_autoupdate:false;association_autocreate:false"`
}