Revision #46 was created by rackycz on Oct 5, 2020, 8:13:16 PM.
Search sort related column
Content
[...]
[['items'], 'integer'],
];
}
```
Into method search() add HAVING condition if you want to filter by amount or items:
```php
if (trim($this->amount)!=='') {
$query->andHavingFilterWhere([
'amount' => $this->amount
]);
[...]
// ...
// You must use joinWith() in order to have both tables in one JOIN - then you can call WHERE and ORDER BY on the 2nd table.