Eager loaded relations (defined in $with array) uses softDeleted scope #6243
Unanswered
ripplexyz
asked this question in
Ideas & Feature Requests
Replies: 1 comment
-
|
From my understanding, it's actually lazy loading is having an incorrect behavior at the moment. Will need to discuss this more internally to ensure the correct behavior is used consistently. |
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.
-
Description:
$with relationship models are loaded with soft delete filters.
Detailed steps to reproduce the issue on a fresh Nova installation:
Issue: While checking list of Resource A, we can see that the 'b' column is empty since B1 is soft deleted. The issue doesn't happen if eager loading not used.
Expected: While using eager loading with BelongsTo field, skip soft deleted scope or use
$displaysWithTrashed.Beta Was this translation helpful? Give feedback.
All reactions