Select doesn't work for relations with globalScope #40201
Unanswered
GertjanRoke
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@driesvints did you also read the original issue I created? Because I really believe this is a bug inside the building of the eager loading queries. I don't know what the new mindset is behind putting it to Discussions, can I read that somewhere, or could you help me understand it? |
Beta Was this translation helpful? Give feedback.
1 reply
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:
I'm trying to eagerload a relationship with a custom
->select()
but this doesn't clear the earlier set selects.Steps To Reproduce:
I created a repo that can be spin up with Sail and has the code to reproduce this issue, in the readme I described the issue and what result I would expect.
Repo: https://github.com/GertjanRoke/scope-issue
I would also love to make a PR, but I have no idea where to start or which test to look at, so I can create a test that will fail to point out the issue.
PS: I have no idea if this is a problem with the Mysql driver or with all.
Beta Was this translation helpful? Give feedback.
All reactions