laravel-eloquent-join icon indicating copy to clipboard operation
laravel-eloquent-join copied to clipboard

Optional Group by

Open trastik1 opened this issue 4 years ago • 0 comments

Currently, for any relation automatically apply group by for pk key $this->groupBy($baseTable.'.'.$basePrimaryKey); so counting not possible without hooks in this situation maybe add some flags for grouping on joins? currently exist condition for count($relations) > 1 but by default relations adding like that $relations.'.FAKE_FIELD' and count always more than 1

trastik1 avatar Jan 27 '21 12:01 trastik1