You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello I have problem with joining 2 things with "join table"
I exactly wright joinForeignKey to be MonitorID but GORM converts it to monitor_id. Its frustrating and thinking about changing GORM to something other because i cant find anything in documentation to force using what i write there instead of GORM automatically change it to something else.
So instead of this generated by GORM maintenance_windows_monitors.monitor_id i would get what i put there and it will look like this maintenance_windows_monitors.MonitorID
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello I have problem with joining 2 things with "join table"
I exactly wright joinForeignKey to be
MonitorID
but GORM converts it tomonitor_id
. Its frustrating and thinking about changing GORM to something other because i cant find anything in documentation to force using what i write there instead of GORM automatically change it to something else.So instead of this generated by GORM
maintenance_windows_monitors.monitor_id
i would get what i put there and it will look like thismaintenance_windows_monitors.MonitorID
Beta Was this translation helpful? Give feedback.
All reactions