Fixes #11697: Added filterHaving(), andFilterHaving() and orFilterHaving() to yii\db\Query

Signed-off-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
Alexander Makarov
2016-12-14 23:58:04 +03:00
parent e78a7fe20e
commit 837b33767c
4 changed files with 146 additions and 18 deletions

View File

@ -369,6 +369,12 @@ You can also specify operator explicitly:
$query->andFilterCompare('name', 'Doe', 'like');
```
Since Yii 2.0.11 there are similar methods for `HAVING` condition:
- [[yii\db\Query::filterHaving()|filterHaving()]]
- [[yii\db\Query::andFilterHaving()|andFilterHaving()]]
- [[yii\db\Query::orFilterHaving()|orFilterHaving()]]
### [[yii\db\Query::orderBy()|orderBy()]] <span id="order-by"></span>
The [[yii\db\Query::orderBy()|orderBy()]] method specifies the `ORDER BY` fragment of a SQL query. For example,