Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

where_has out of index issue #402

Closed
ghost opened this issue Feb 28, 2021 · 2 comments · Fixed by #403
Closed

where_has out of index issue #402

ghost opened this issue Feb 28, 2021 · 2 comments · Fixed by #403
Labels
bug An existing feature is not working as intended

Comments

@ghost
Copy link

ghost commented Feb 28, 2021

Describe the bug
I tried to get the data from the members' table which has a relation with profile and the profile has a specific column to compare.

To Reproduce

  1. Create Member Table
  2. Create Profile Table
  3. Relation (Member has_one Profile), profiles.member_id = member.id
  4. Member.where_has('profile', q: q.where('some-profile-column', '12222')).get()

Expected behavior
The above code in no. 4 should return all the members having a profile with matched profile-column value.

Screenshots or code snippets
Screenshots help a lot. If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac OSX
  • Version Big Sur

What database are you using?

  • Type: Postgres
  • Version: 13.2
  • Masonite ORM 3.0.6

image

@ghost ghost added the bug An existing feature is not working as intended label Feb 28, 2021
@josephmancuso josephmancuso mentioned this issue Feb 28, 2021
@josephmancuso
Copy link
Member

I think I fixed this. Can you upgrade to v1.0.33 and try again. I wasn't able to reproduce the exact error but I did find another issue that could have caused this.

@josephmancuso
Copy link
Member

If that doesn't work we can reopen this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing feature is not working as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant