Difference between #2 and #3 of
get summary of related model via STAT relation

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)'),
```

4 1
8 followers
Viewed: 27 719 times
Version: 1.1
Category: How-tos
Written by: rootbear
Last updated by: YiiJeka
Created on: Sep 15, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history