Revision #3 has been created by YiiJeka on Apr 22, 2014, 10:36:51 AM with the memo:
set ver
« previous (#2)
Changes
Title
unchanged
get summary of related model via STAT relation
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
relation tips
Content
unchanged
[...]
```php
'itemsMax'=>array(self::STAT, 'Invoiceitem', 'invoice_id', 'select' => 'Max(amount)'),
'itemsAVG'=>array(self::STAT, 'Invoiceitem', 'invoice_id', 'select' => 'AVG(amount)'),
```