Open gam6itko opened 2 years ago
Why not
->select([
'id' => 'table1.id',
'cnt1' => new Fragment('('.$database->select('COUNT(1)')->from('table2')->where('inner_id', new Expression('table1.id')).')'),
])
etc. ?
has common traits with #200
I have an idea!
I have the query with subquery columns. I need to make aliases for subquery columns for
having
;now I need to do weird things like this
We need something like
ColumnAliasInjection
to make it prettier