Closed antonkomarev closed 7 years ago
It looks like problem is here:
public function scopeBetween($query, array $participants)
{
$query->whereHas('participants', function ($query) use ($participants) {
$query->whereIn('user_id', $participants)
->groupBy('thread_id')
->havingRaw('COUNT(thread_id)=' . count($participants));
});
}
Can you try using dev-master
? This looks similar to the postgres fix that hasn't been tagged yet
@cmgmyr It's working, thanks!
@cmgmyr Hello, Chris! I've found that latest MySQL version turned on
ONLY_FULL_GROUP_BY
flag by default. This is critical on latest MySQL installations.More explanation why this could happen: http://stackoverflow.com/a/41184943