You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, im having this error and for what i found it should be fixed, so im guessing im doing something wrong.
Here is my builder:
public function builder(): Builder
{
return Membership::query()
->join('conciliations as conciliation', function ($conciliation) {
$conciliation->on('memberships.conciliation_id', '=', 'conciliation.id');
})
->join('user_concs as user', function ($user) {
$user->on('memberships.conciliation_id', '=', 'user.conciliation_id');
$user->on('memberships.username', '=', 'user.username');
})
->where("memberships.conciliation_id",'=','1')
->select(
'memberships.username as username',
'memberships.profile as profile',
'conciliation.application as application',
'user.fullname as fullname'
);
}
If i remove from the columns the joined fields it works fine, so im guessing im calling them wrong.
Can someone help me with this problem?
Thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, im having this error and for what i found it should be fixed, so im guessing im doing something wrong.
Here is my builder:
This is my columns function:
If i remove from the columns the joined fields it works fine, so im guessing im calling them wrong.
Can someone help me with this problem?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions