Trying to avoid #8, using GroupModel to group UnionModel causes error. Code: ``` php $m = new \smbo\GroupModel($m); $m->groupBy(['contact_id'], [ 'c'=>'count(*)', 'total_net'=>'sum([])', }); ``` But this leads to the following error: error: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'derivedTable.contact_id' in 'group statement'"
Trying to avoid #8, using GroupModel to group UnionModel causes error. Code:
But this leads to the following error:
error: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'derivedTable.contact_id' in 'group statement'"