Entity Loader with Diamond Relations #3020
Unanswered
thorsonlinguistics
asked this question in
Q&A
Replies: 2 comments
-
|
This looks like a bug or current limitation. As a workaround, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Does #3030 work? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement types that have a diamond relation. I've followed the documentation on diamond relations, but it doesn't seem to work as expected with the entity loader - the code compiles but the related fields are Unloaded on the ModelEx. A MWE is given below, following the quickstart example. The result is
ModelEx { id: 1, name: "YumBakery", manager_id: 1, cashier_id: 2, manager: Unloaded, cashier: Unloaded }, but I'm expected manager and cashier to be loaded with the manager and cashier. Is there a different way I should be defining the attributes, or a different way I should be calling.with()?Beta Was this translation helpful? Give feedback.
All reactions