Getting empty collection with whereHasMorph #37559
Unanswered
dutchman1990
asked this question in
Q&A
Replies: 0 comments
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:
When following the whereHasMorph with wildcard example in the docs (Eloquent Relationships Page), I can't get it to work and I feel like I am missing a step. This is the example:
My relation:
Expected result
Collection with data, although getting empty collection in every case. Checked the corresponding sql which seems fine but with ORM it's not working.
Beta Was this translation helpful? Give feedback.
All reactions