Open arrowak opened 4 years ago
I'm seeing the same error in an application I'm working on. It's the exact same situation. We are trying to eager load "OriginDutyStation.Address" where OriginDutyStation
is a pointer in the model.
Anything here people? For a large struct, It is not making sense to work on a copy rather than a pointer.
It would really help if you take a look into this.
Description
The application panics when trying to eager load multi-level associations.
Steps to Reproduce the Problem
I have below model structure in my application.
organisation.go
application.go
applicationtype.go
In the
Show
action oforganisations.go
, I am doing trying to eager load all the Applications for the current Organisation and also go another level deeper by eager loading Applicationtype for every Application found.Expected Behavior
The statement should return -
Actual Behavior
The statement succeeds when I convert
to
Info
OS: macOS Catalina v10.15.5 pop Version: 5.2.3 via Buffalo v0.16.10