GORM Playground Link

https://github.com/go-gorm/playground/pull/413

Description

The docs (https://gorm.io/docs/settings.html) explicitly recommend using DB.Set() in order to pass data to hooks for association. It doesn't work -- the Statement pointer is still duplicated so Get() always fails with associations.

Comment From: jinzhu

Gorm DB.Set() doesn't work with custom join tables

works for me, seems there is an typo in the PR.

Comment From: awmcclain

@jinzhu I updated the playground code -- I thought this was more general but it seems like it only affects custom join tables.