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

Revision #2 has been created by rootbear on Sep 16, 2013, 5:26:52 PM with the memo:

typo
« previous (#1) next (#3) »

Changes

Title unchanged

get summary of related model via STAT relation

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

relation tips

Content changed

[...]
```

more in your model:

```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 709 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