Questions tagged [laravel-eloquentmany]
2 questions
0
votes
0 answers
Laravel MM sync throws Illuminate\Database\Eloquent\Relations\HasOne exception
I try to save many to many relations inside loop here is the code
$user = User::firstOrCreate(
[
'username' => $member->username,
'email' => $member->email
],
…

fefe
- 8,755
- 27
- 104
- 180
-1
votes
1 answer
unable to GROUP_CONCAT for 'one to many relationship' when query has multiple other joins
I am unable to use GROUP_CONCAT for 'one to many relationship' when the query has multiple other joins.
This is the error message:
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #2
of SELECT list is not in GROUP BY clause and…

Paul Kendal
- 559
- 9
- 24