Difference between #13 and #14 of
Filter & Sort by Summary Data in GridView Yii 2.0

Revision #14 has been created by Kartik V on May 18, 2014, 10:47:35 AM with the memo:

Comments corrected
« previous (#13)

Changes

Title unchanged

Filter & Sort by Summary Data in GridView Yii 2.0

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

wiki, faq, grid, gridview, sum, summary, count, yii2, datacolumn, calculated, filter, sort

Content changed

[...]
];
}

/**
* setup search function for filtering and sorting
* based on
`fullName` and `orderAmount` field
*/
public function search($params) {
$query = Customer::find();
$subQuery = Order::find()
->select('customer_id, SUM(amount) as order_amount')
[...]
5 2
48 followers
Viewed: 72 984 times
Version: 2.0
Category: Tutorials
Written by: Kartik V
Last updated by: Kartik V
Created on: May 11, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history