get summary of related model via STAT relation

Comparing #1 with #2

Revision #2 was created by rootbear rootbear on Sep 16, 2013, 5:26:52 PM.

typo

Content

[...]
```

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