GORM Playground Link
I expect the tests to pass.
go-gorm/playground#255
(Wow, this GORM Playground setup is awesome! 🌮 for all!)
Description
AfterFind hooks should always be called after all constituents loaded and their AfterFind hooks called. In the example above, I have the following hierarchy
ParentDb -> []EntryDb -> []LinksDb
If I load a single instance of EntryDb, the AfterFind hook for EntryDb is called after LinksDb instances are loaded and added to their parent EntryDb. However, if I load ParentDb, the AfterFind hook for EntryDb is called before LinksDb instances are loaded and added to their parent EntryDb.
The link above provides an example. I expected the test to pass. Hopefully, it's something I did wrong.