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

asQuery called on a relationship returns the relationship rather than quick.models.QuickBuilder #227

Closed
davidAtInleague opened this issue Jun 5, 2023 · 2 comments

Comments

@davidAtInleague
Copy link
Contributor

davidAtInleague commented Jun 5, 2023

quick v6.2.1

x = getInstance("qUser").firstOrFail().someHasOneRelationship().asQuery()
y = getInstance("qUser").firstOrFail().someHasOneRelationship().retrieveQuery()

// quick.models.Relationships.HasOne
writedump(getmetadata(x).name)

// modules.quick.models.QuickQB
writedump(getmetadata(y).name)
@elpete
Copy link
Collaborator

elpete commented Jun 7, 2023

So it’s not necessarily an error that it’s a different class. What are you trying to do from there that isn’t working?

@davidAtInleague
Copy link
Contributor Author

This was sort of part of #226, where it initially seemed like types not lining up was a cause, but this isn't a root cause of that issue. Not a bug it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants