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
In testing out the new EagerPreload functionality, I noticed two scenarios where associations did not appear to be populated with EagerPreload but were populated with Eager:
Fetching a belongs_to association for an optional field when it's represented as a pointer (if represented as one of the nulls types, it works fine).
Fetching more than one nested belongs_to association at the same level results in only the last one being populated.
The first problem noted above seems to be triggered by the pointer UUID fields. After I changed those to nulls.UUID that problem went away, but the second problem above emerged.
Expected Behavior
I expected EagerPreload would result in the same associations being loaded as Eager.
Actual Behavior
Some associations did not appear to load.
Info
Mac OS X Catalina, Postgres, latest Pop development branch, and not using through Buffalo.
The text was updated successfully, but these errors were encountered:
Excuse me for intrusion into your issue, but I can add, that EagerPreload not loading many-to-many relations. Killed one day to find it out. Ended with creating new project with Users and Addresses models from documentation and it worked. But not when I switched to EagerPreload mode.
Description
In testing out the new
EagerPreload
functionality, I noticed two scenarios where associations did not appear to be populated withEagerPreload
but were populated withEager
:belongs_to
association for an optional field when it's represented as a pointer (if represented as one of thenulls
types, it works fine).belongs_to
association at the same level results in only the last one being populated.Steps to Reproduce the Problem
Here's an example query and the relevant part of the model.
The first problem noted above seems to be triggered by the pointer UUID fields. After I changed those to
nulls.UUID
that problem went away, but the second problem above emerged.Expected Behavior
I expected
EagerPreload
would result in the same associations being loaded asEager
.Actual Behavior
Some associations did not appear to load.
Info
Mac OS X Catalina, Postgres, latest Pop development branch, and not using through Buffalo.
The text was updated successfully, but these errors were encountered: