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

HasOneThrough #960

Open
mattkenefick opened this issue Sep 25, 2023 · 0 comments
Open

HasOneThrough #960

mattkenefick opened this issue Sep 25, 2023 · 0 comments
Assignees

Comments

@mattkenefick
Copy link

Why this feature is required (specific use-cases will be appreciated)?

I have a junction table defining relationships between ItemA and ItemB. I'd like to get a hasOne which works ItemA -> Relationships -> ItemB.

It works right now with HasManyThrough, but is returned as an array rather than an object.

Have you tried any other work arounds?

Yeah, but I think it would be better as a core feature syntactically since it would fit in with the other relationships like hasManyThrough and manyToMany.

Are you willing to work on it with little guidance?

Maybe.

@thetutlage thetutlage self-assigned this Dec 14, 2023
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