How do i join to a table multiple times? #1459
Unanswered
happymacarts
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Wondered if anyone has a solution on how to use the same table twice in a builder query without getting the errors? |
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
-
I have an "invited_by" column on my user table and an invitor hasOne relationship on my user model.
how do I retrieve the relationship without getting the error
Component
Column::make('Invited By','invitor.name') ,
Model
public function invitor(): HasOne { return $this->hasOne(User::class, 'id', 'invited_by'); }
Beta Was this translation helpful? Give feedback.
All reactions