Skip to content

1.3.6

Compare
Choose a tag to compare
@romaninsh romaninsh released this 05 Jul 11:20
· 1093 commits to develop since this release

This release adds some great improvements to the aggregate fields. The most notable change is that
you no longer need to specify 'field' for 'count' aggregation, it has been a thorn:

$this->hasMany('Invoices', new Invoice())->addField('invoice_count', ['aggregate'=>'count']);

Now the alternative syntax is available, where you can just define your expression explicitly:

$this->hasMany('Items', new Item())->addField('list', ['expr'=>'group_concat([name] separator "+")']);

Closed issues:

  • Documentation atk4/data not meet atk/data-primer repository #328

Merged pull requests: